HttpClient クラス

HttpClient クラス (System.Net.Http 名前空間)

[APIドキュメント]

public class HttpClient : HttpMessageInvoker

継承:Object → HttpMessageInvoker → HttpClient

[toc]
目次

メソッド

GetAsync

@ [APIドキュメント]

public Task<HttpResponseMessage> GetAsync (string? requestUri);
public Task<HttpResponseMessage> GetAsync (Uri? requestUri);
public Task<HttpResponseMessage> GetAsync (string? requestUri, HttpCompletionOption completionOption);
public Task<HttpResponseMessage> GetAsync (string? requestUri, CancellationToken cancellationToken);
public Task<HttpResponseMessage> GetAsync (Uri? requestUri, HttpCompletionOption completionOption);
public Task<HttpResponseMessage> GetAsync (Uri? requestUri, CancellationToken cancellationToken);
public Task<HttpResponseMessage> GetAsync (string? requestUri, HttpCompletionOption completionOption, CancellationToken cancellationToken);
public Task<HttpResponseMessage> GetAsync (Uri? requestUri, HttpCompletionOption completionOption, CancellationToken cancellationToken);

  • 指定された URI に GET 要求を非同期操作として送信します。
目次