The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

HttpClient Class

Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)
public ref class HttpClient : public HttpMessageInvoker

The HttpClient type exposes the following members.

Public methodHttpClient()Initializes a new instance of the HttpClient class.
Public methodHttpClient(HttpMessageHandler)Initializes a new instance of the HttpClient class with a specific handler.
Public methodHttpClient(HttpMessageHandler, Boolean)
Public propertyBaseAddressGets or sets the base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests.
Public propertyDefaultRequestHeadersGets the headers which should be sent with each request.
Public propertyMaxResponseContentBufferSizeGets or sets the maximum number of bytes to buffer when reading the response content.
Public propertyTimeoutGets or sets the number of milliseconds to wait before the request times out.
Public methodCancelPendingRequestsCancel all pending requests on this instance.
Public methodDeleteAsync(String)
Public methodDeleteAsync(Uri)
Public methodDeleteAsync(String, CancellationToken)
Public methodDeleteAsync(Uri, CancellationToken)
Public methodDispose() (Inherited from HttpMessageInvoker.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the HttpClient and optionally disposes of the managed resources. (Overrides HttpMessageInvoker::Dispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetAsync(String)
Public methodGetAsync(Uri)
Public methodGetAsync(String, HttpCompletionOption)
Public methodGetAsync(String, CancellationToken)
Public methodGetAsync(Uri, HttpCompletionOption)
Public methodGetAsync(Uri, CancellationToken)
Public methodGetAsync(String, HttpCompletionOption, CancellationToken)
Public methodGetAsync(Uri, HttpCompletionOption, CancellationToken)
Public methodGetByteArrayAsync(String)
Public methodGetByteArrayAsync(Uri)
Public methodGetHashCode (Inherited from Object.)
Public methodGetStreamAsync(String)
Public methodGetStreamAsync(Uri)
Public methodGetStringAsync(String)
Public methodGetStringAsync(Uri)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPostAsync(String, HttpContent)
Public methodPostAsync(Uri, HttpContent)
Public methodPostAsync(String, HttpContent, CancellationToken)
Public methodPostAsync(Uri, HttpContent, CancellationToken)
Public methodPutAsync(String, HttpContent)
Public methodPutAsync(Uri, HttpContent)
Public methodPutAsync(String, HttpContent, CancellationToken)
Public methodPutAsync(Uri, HttpContent, CancellationToken)
Public methodSendAsync(HttpRequestMessage)
Public methodSendAsync(HttpRequestMessage, HttpCompletionOption)
Public methodSendAsync(HttpRequestMessage, CancellationToken) (Overrides HttpMessageInvoker::SendAsync(HttpRequestMessage, CancellationToken).)
Public methodSendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)
Public methodToString (Inherited from Object.)
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
© 2014 Microsoft. All rights reserved.