Message Handler Class
A base type for HTTP message handlers.
public ref class HttpMessageHandler abstract : IDisposable
public abstract class HttpMessageHandler : IDisposable
type HttpMessageHandler = class interface IDisposable
Public MustInherit Class HttpMessageHandler Implements IDisposable
There are various HTTP message handlers that can be used. These include the following.
DelegatingHandler - A class used to plug a handler into a handler chain.
HttpMessageHandler - A simple class to derive from that supports the most common requirements for most applications.
HttpClientHandler - A class that operates at the bottom of the handler chain that actually handles the HTTP transport operations.
WebRequestHandler - A specialty class that operates at the bottom of the handler chain class that handles HTTP transport operations with options that are specific to the System.Net.HttpWebRequest object.
This is necessary since methods on HttpClient can be called concurrently and need a guarantee of thread safety. So if a handler is assigned to an HttpClient instance, the SendAsync method of the handler may get called concurrently by the HttpClient instance and needs to be thread safe.
Initializes a new instance of the HttpMessageHandler class.
Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageHandler.
Releases the unmanaged resources used by the HttpMessageHandler and optionally disposes of the managed resources.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
When overridden in a derived class, sends an HTTP request with the specified request and cancellation token. Otherwise, throws a NotSupportedException.
Send an HTTP request as an asynchronous operation.
Returns a string that represents the current object.(Inherited from Object)