DelegatingHandler DelegatingHandler DelegatingHandler DelegatingHandler Class

Definition

A type for HTTP handlers that delegate the processing of HTTP response messages to another handler, called the inner handler.

public ref class DelegatingHandler abstract : System::Net::Http::HttpMessageHandler
public abstract class DelegatingHandler : System.Net.Http.HttpMessageHandler
type DelegatingHandler = class
    inherit HttpMessageHandler
Public MustInherit Class DelegatingHandler
Inherits HttpMessageHandler
Inheritance
DelegatingHandlerDelegatingHandlerDelegatingHandlerDelegatingHandler
Derived

Remarks

An application should provide an inner handler either in the constructor or through the InnerHandler property before calling SendAsync; otherwise, an InvalidOperationException will be thrown.

Note that InnerHandler property may be a delegating handler as well. This approach allows the creation of handler stacks to process the HTTP response messages.

Constructors

DelegatingHandler() DelegatingHandler() DelegatingHandler() DelegatingHandler()

Creates a new instance of the DelegatingHandler class.

DelegatingHandler(HttpMessageHandler) DelegatingHandler(HttpMessageHandler) DelegatingHandler(HttpMessageHandler) DelegatingHandler(HttpMessageHandler)

Creates a new instance of the DelegatingHandler class with a specific inner handler.

Properties

InnerHandler InnerHandler InnerHandler InnerHandler

Gets or sets the inner handler which processes the HTTP response messages.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpMessageHandler.

(Inherited from HttpMessageHandler)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the DelegatingHandler, and optionally disposes of the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SendAsync(HttpRequestMessage, CancellationToken) SendAsync(HttpRequestMessage, CancellationToken) SendAsync(HttpRequestMessage, CancellationToken) SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to