HttpClientExtensions Class
Extensions of HttpClient
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["HttpClientExtensions"] class Type type-node

Syntax

public static class HttpClientExtensions

Methods

Name Return Value Summary
DeleteAsync(HttpClient?, Uri?, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Sends a HttpMethod.Delete HttpRequestMessage.
static
DownloadToFileAsync(HttpClient?, Uri?, string, Action<HttpRequestMessage>?) Task
Downloads resource at URI to the specified path.
static
DownloadToFileAsync(HttpClient?, Uri?, string) Task
Downloads resource at URI to the specified path.
static
DownloadToStringAsync(HttpClient?, Uri?, Action<HttpRequestMessage>?) Task<string>
Downloads resource at URI to string.
static
DownloadToStringAsync(HttpClient?, Uri?) Task<string>
Downloads resource at URI to string.
static
GetAsync(HttpClient?, Uri?, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Sends a HttpMethod.Get HttpRequestMessage.
static
PostFormAsync(HttpClient?, Uri?, Hashtable, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationFormUrlEncoded request body using HttpMethod.Post and System.Text.Encoding.UTF8.
static
PostFormAsync(HttpClient?, Uri?, Hashtable) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationFormUrlEncoded request body using HttpMethod.Post and System.Text.Encoding.UTF8.
static
PostJsonAsync(HttpClient?, Uri?, string, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationJson request body using HttpMethod.Post and System.Text.Encoding.UTF8.
static
PostJsonAsync(HttpClient?, Uri?, string) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationJson request body using HttpMethod.Post and System.Text.Encoding.UTF8.
static
PostXmlAsync(HttpClient?, Uri?, string, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationXml request body using HttpMethod.Post and System.Text.Encoding.UTF8.
static
PostXmlAsync(HttpClient?, Uri?, string) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationXml request body using HttpMethod.Post and System.Text.Encoding.UTF8.
static
PutJsonAsync(HttpClient?, Uri?, string, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationJson request body using HttpMethod.Put and System.Text.Encoding.UTF8.
static
PutJsonAsync(HttpClient?, Uri?, string) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationJson request body using HttpMethod.Put and System.Text.Encoding.UTF8.
static
PutXmlAsync(HttpClient?, Uri?, string, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationXml request body using HttpMethod.Put and System.Text.Encoding.UTF8.
static
PutXmlAsync(HttpClient?, Uri?, string) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified ApplicationXml request body using HttpMethod.Put and System.Text.Encoding.UTF8.
static
SendAsync(HttpClient?, Uri?, HttpMethod, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage)
static
SendBodyAsync(HttpClient?, Uri?, HttpMethod, string, Encoding, string, Action<HttpRequestMessage>?) Task<HttpResponseMessage?>
Calls HttpClient.SendAsync(HttpRequestMessage) with the specified request body.
static