Share via


HttpClientExtensions Methods

Include Protected Members
Include Inherited Members

Methods

  Name Description
Public methodStatic member PostAsJsonAsync<T>(HttpClient, String, T) Sends a POST request as an asynchronous operation, with a specified value serialized as JSON.
Public methodStatic member PostAsJsonAsync<T>(HttpClient, String, T, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized as JSON. Includes a cancellation token to cancel the request.
Public methodStatic member PostAsXmlAsync<T>(HttpClient, String, T) Sends a POST request as an asynchronous operation, with a specified value serialized as XML.
Public methodStatic member PostAsXmlAsync<T>(HttpClient, String, T, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized as XML. Includes a cancellation token to cancel the request.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter and media type string.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter. Includes a cancellation token to cancel the request.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter and media type.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter and media type string. Includes a cancellation token to cancel the request.
Public methodStatic member PutAsJsonAsync<T>(HttpClient, String, T) Sends a PUT request as an asynchronous operation, with a specified value serialized as JSON.
Public methodStatic member PutAsJsonAsync<T>(HttpClient, String, T, CancellationToken) Sends a PUT request as an asynchronous operation, with a specified value serialized as JSON. Includes a cancellation token to cancel the request.
Public methodStatic member PutAsXmlAsync<T>(HttpClient, String, T) Sends a PUT request as an asynchronous operation, with a specified value serialized as XML.
Public methodStatic member PutAsXmlAsync<T>(HttpClient, String, T, CancellationToken) Sends a PUT request as an asynchronous operation, with a specified value serialized as XML. Includes a cancellation token to cancel the request.
Public methodStatic member PutAsync<T>(HttpClient, String, T, MediaTypeFormatter) Sends a PUT request as an asynchronous operation, with a specified value serialized using the given formatter.
Public methodStatic member PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, String) Sends a PUT request as an asynchronous operation, with a specified value serialized using the given formatter and media type string.
Public methodStatic member PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, CancellationToken) Sends a PUT request as an asynchronous operation, with a specified value serialized using the given formatter and medai type string. Includes a cancellation token to cancel the request.
Public methodStatic member PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken) Sends a PUT request as an asynchronous operation, with a specified value serialized using the given formatter and media type. Includes a cancellation token to cancel the request.
Public methodStatic member PutAsync<T>(HttpClient, String, T, MediaTypeFormatter, String, CancellationToken) Sends a PUT request as an asynchronous operation, with a specified value serialized using the given formatter and media type string. Includes a cancellation token to cancel the request.

Top

See Also

Reference

HttpClientExtensions Class

System.Net.Http Namespace