Export (0) Print
Expand All

HttpClient Methods

.NET Framework 4.5

The HttpClient type exposes the following members.

  Name Description
Public method CancelPendingRequests Cancel all pending requests on this instance.
Public method DeleteAsync(String) Send a DELETE request to the specified Uri as an asynchronous operation.
Public method DeleteAsync(Uri) Send a DELETE request to the specified Uri as an asynchronous operation.
Public method DeleteAsync(String, CancellationToken) Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.
Public method DeleteAsync(Uri, CancellationToken) Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.
Public method Dispose() Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageInvoker. (Inherited from HttpMessageInvoker.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the HttpClient and optionally disposes of the managed resources. (Overrides HttpMessageInvoker.Dispose(Boolean).)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAsync(String) Send a GET request to the specified Uri as an asynchronous operation.
Public method GetAsync(Uri) Send a GET request to the specified Uri as an asynchronous operation.
Public method GetAsync(String, HttpCompletionOption) Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.
Public method GetAsync(String, CancellationToken) Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.
Public method GetAsync(Uri, HttpCompletionOption) Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.
Public method GetAsync(Uri, CancellationToken) Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.
Public method GetAsync(String, HttpCompletionOption, CancellationToken) Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.
Public method GetAsync(Uri, HttpCompletionOption, CancellationToken) Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.
Public method GetByteArrayAsync(String) Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.
Public method GetByteArrayAsync(Uri) Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetStreamAsync(String) Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.
Public method GetStreamAsync(Uri) Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.
Public method GetStringAsync(String) Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.
Public method GetStringAsync(Uri) Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method PostAsync(String, HttpContent) Send a POST request to the specified Uri as an asynchronous operation.
Public method PostAsync(Uri, HttpContent) Send a POST request to the specified Uri as an asynchronous operation.
Public method PostAsync(String, HttpContent, CancellationToken) Send a POST request with a cancellation token as an asynchronous operation.
Public method PostAsync(Uri, HttpContent, CancellationToken) Send a POST request with a cancellation token as an asynchronous operation.
Public method PutAsync(String, HttpContent) Send a PUT request to the specified Uri as an asynchronous operation.
Public method PutAsync(Uri, HttpContent) Send a PUT request to the specified Uri as an asynchronous operation.
Public method PutAsync(String, HttpContent, CancellationToken) Send a PUT request with a cancellation token as an asynchronous operation.
Public method PutAsync(Uri, HttpContent, CancellationToken) Send a PUT request with a cancellation token as an asynchronous operation.
Public method SendAsync(HttpRequestMessage) Send an HTTP request as an asynchronous operation.
Public method SendAsync(HttpRequestMessage, HttpCompletionOption) Send an HTTP request as an asynchronous operation.
Public method SendAsync(HttpRequestMessage, CancellationToken) Send an HTTP request as an asynchronous operation. (Overrides HttpMessageInvoker.SendAsync(HttpRequestMessage, CancellationToken).)
Public method SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken) Send an HTTP request as an asynchronous operation.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft