Share via


HttpClientExtensions Class

 

Extension methods that aid in making formatted requests using HttpClient.

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Inheritance Hierarchy

System.Object
  System.Net.Http.HttpClientExtensions

Syntax

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class HttpClientExtensions
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ExtensionAttribute]
public ref class HttpClientExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
type HttpClientExtensions = class end
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<ExtensionAttribute>
Public NotInheritable Class HttpClientExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static PostAsJsonAsync<T>(HttpClient, String, T)

System_CAPS_pubmethodSystem_CAPS_static PostAsJsonAsync<T>(HttpClient, String, T, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PostAsJsonAsync<T>(HttpClient, Uri, T)

Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as JSON.

System_CAPS_pubmethodSystem_CAPS_static PostAsJsonAsync<T>(HttpClient, Uri, T, CancellationToken)

Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as JSON.

System_CAPS_pubmethodSystem_CAPS_static PostAsXmlAsync<T>(HttpClient, String, T)

System_CAPS_pubmethodSystem_CAPS_static PostAsXmlAsync<T>(HttpClient, String, T, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PostAsXmlAsync<T>(HttpClient, Uri, T)

Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as XML.

System_CAPS_pubmethodSystem_CAPS_static PostAsXmlAsync<T>(HttpClient, Uri, T, CancellationToken)

Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as XML.

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, String, T, MediaTypeFormatter)

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String)

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, Uri, T, MediaTypeFormatter)

Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, CancellationToken)

Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken)

Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, String)

Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PostAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, String, CancellationToken)

Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PutAsJsonAsync<T>(HttpClient, String, T)

System_CAPS_pubmethodSystem_CAPS_static PutAsJsonAsync<T>(HttpClient, String, T, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PutAsJsonAsync<T>(HttpClient, Uri, T)

Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as JSON.

System_CAPS_pubmethodSystem_CAPS_static PutAsJsonAsync<T>(HttpClient, Uri, T, CancellationToken)

Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as JSON.

System_CAPS_pubmethodSystem_CAPS_static PutAsXmlAsync<T>(HttpClient, String, T)

System_CAPS_pubmethodSystem_CAPS_static PutAsXmlAsync<T>(HttpClient, String, T, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PutAsXmlAsync<T>(HttpClient, Uri, T)

Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as XML.

System_CAPS_pubmethodSystem_CAPS_static PutAsXmlAsync<T>(HttpClient, Uri, T, CancellationToken)

Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as XML.

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, String, T, MediaTypeFormatter)

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, String)

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, String, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, Uri, T, MediaTypeFormatter)

Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, CancellationToken)

Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken)

Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, String)

Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

System_CAPS_pubmethodSystem_CAPS_static PutAsync<T>(HttpClient, Uri, T, MediaTypeFormatter, String, CancellationToken)

Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Net.Http Namespace

Return to top