Export (0) Print
Expand All

HttpClientExtensions Class

Provides 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

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