DelegatingHandler Class (System.Net.Http)

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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
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.

Applies to