HttpClientHandler Class

A base class for HTTP handler implementations.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

public ref class HttpClientHandler : public HttpMessageHandler

The HttpClientHandler type exposes the following members.

  NameDescription
Public methodHttpClientHandlerCreates an instance of a HttpClientHandler class.
Top

  NameDescription
Public propertyAllowAutoRedirectGets or sets a value that indicates whether the handler should follow redirection responses.
Public propertyAutomaticDecompressionGets or sets the type of decompression method used by the handler for automatic decompression of the HTTP content response.
Public propertyClientCertificateOptionsGets or sets how the client certificates are provided.
Public propertyCookieContainerGets or sets the cookie container used to store server cookies by the handler.
Public propertyCredentialsGets or sets authentication information used by this handler.
Public propertyMaxAutomaticRedirectionsGets or sets the maximum number of redirects that the handler follows.
Public propertyMaxRequestContentBufferSizeGets or sets the maximum request content buffer size used by the handler.
Public propertyPreAuthenticateGets or sets a value that indicates whether the handler sends an Authorization header with the request.
Public propertyProxyGets or sets proxy information used by the handler.
Public propertySupportsAutomaticDecompressionGets a value that indicates whether the handler supports automatic response content decompression.
Public propertySupportsProxyGets a value that indicates whether the handler supports proxy settings.
Public propertySupportsRedirectConfigurationGets a value that indicates whether the handler supports configuration settings for the AllowAutoRedirect and MaxAutomaticRedirections properties.
Public propertyUseCookiesGets or sets a value that indicates whether the handler uses the CookieContainer property to store server cookies and uses these cookies when sending requests.
Public propertyUseDefaultCredentialsGets or sets a value that controls whether default credentials are sent with requests by the handler.
Public propertyUseProxyGets or sets a value that indicates whether the handler uses a proxy for requests.
Top

  NameDescription
Public methodDispose()Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageHandler. (Inherited from HttpMessageHandler.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the HttpClientHandler and optionally disposes of the managed resources. (Overrides HttpMessageHandler::Dispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSendAsyncSends an HTTP request with a cancellation token as an asynchronous operation. (Overrides HttpMessageHandler::SendAsync(HttpRequestMessage, CancellationToken).)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public Extension MethodSupportsAllowAutoRedirectDetermines whether the HTTP client handler supports following redirection responses. (Defined by HttpClientHandlerExtensions.)
Public Extension MethodSupportsPreAuthenticateDetermines whether the HTTP client handler supports sending an authorization header with the request. (Defined by HttpClientHandlerExtensions.)
Public Extension MethodSupportsProtocolVersionDetermines whether the HTTP client handler supports protocol version with the request. (Defined by HttpClientHandlerExtensions.)
Public Extension MethodSupportsTransferEncodingChunkedDetermines whether the HTTP client handler supports transfer encoding chunked. (Defined by HttpClientHandlerExtensions.)
Public Extension MethodSupportsUseProxyDetermines whether the HTTP client handler supports using a proxy for the request. (Defined by HttpClientHandlerExtensions.)
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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft