Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpClientExtensions Class

Extension methods that aid in making formatted requests using HttpClient.

System.Object
  System.Net.Http.HttpClientExtensions

Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class HttpClientExtensions
  NameDescription
Public methodStatic memberPostAsJsonAsync<T>(HttpClient, String, T)
Public methodStatic memberPostAsJsonAsync<T>(HttpClient, Uri, T) Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
Public methodStatic memberPostAsJsonAsync<T>(HttpClient, String, T, CancellationToken)
Public methodStatic memberPostAsJsonAsync<T>(HttpClient, Uri, T, CancellationToken) Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
Public methodStatic memberPostAsXmlAsync<T>(HttpClient, String, T)
Public methodStatic memberPostAsXmlAsync<T>(HttpClient, Uri, T) Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as XML.
Public methodStatic memberPostAsXmlAsync<T>(HttpClient, String, T, CancellationToken)
Public methodStatic memberPostAsXmlAsync<T>(HttpClient, Uri, T, CancellationToken) Sends a POST request as an asynchronous operation to the specified Uri with the given value serialized as XML.
Public methodStatic memberPostAsync<T>(HttpClient, String, T, MediaTypeFormatter)
Public methodStatic memberPostAsync<T>(HttpClient, Uri, T, MediaTypeFormatter) Sends a POST request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
Public methodStatic memberPostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String)
Public methodStatic memberPostAsync<T>(HttpClient, String, T, MediaTypeFormatter, CancellationToken)
Public methodStatic memberPostAsync<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.
Public methodStatic memberPostAsync<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.
Public methodStatic memberPostAsync<T>(HttpClient, String, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken)
Public methodStatic memberPostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String, CancellationToken)
Public methodStatic memberPostAsync<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.
Public methodStatic memberPostAsync<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.
Public methodStatic memberPutAsJsonAsync<T>(HttpClient, String, T)
Public methodStatic memberPutAsJsonAsync<T>(HttpClient, Uri, T) Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
Public methodStatic memberPutAsJsonAsync<T>(HttpClient, String, T, CancellationToken)
Public methodStatic memberPutAsJsonAsync<T>(HttpClient, Uri, T, CancellationToken) Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as JSON.
Public methodStatic memberPutAsXmlAsync<T>(HttpClient, String, T)
Public methodStatic memberPutAsXmlAsync<T>(HttpClient, Uri, T) Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as XML.
Public methodStatic memberPutAsXmlAsync<T>(HttpClient, String, T, CancellationToken)
Public methodStatic memberPutAsXmlAsync<T>(HttpClient, Uri, T, CancellationToken) Sends a PUT request as an asynchronous operation to the specified Uri with the given value serialized as XML.
Public methodStatic memberPutAsync<T>(HttpClient, String, T, MediaTypeFormatter)
Public methodStatic memberPutAsync<T>(HttpClient, Uri, T, MediaTypeFormatter) Sends a PUT request as an asynchronous operation to the specified Uri with value serialized using the given formatter.
Public methodStatic memberPutAsync<T>(HttpClient, String, T, MediaTypeFormatter, String)
Public methodStatic memberPutAsync<T>(HttpClient, String, T, MediaTypeFormatter, CancellationToken)
Public methodStatic memberPutAsync<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.
Public methodStatic memberPutAsync<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.
Public methodStatic memberPutAsync<T>(HttpClient, String, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken)
Public methodStatic memberPutAsync<T>(HttpClient, String, T, MediaTypeFormatter, String, CancellationToken)
Public methodStatic memberPutAsync<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.
Public methodStatic memberPutAsync<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.
Top

No content here will be updated; please do not add material here.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.