C# Class WebApi.HttpOptions.CustomHeaderHandler

Adds a header to all responses.
Inheritance: System.Net.Http.DelegatingHandler
Datei anzeigen Open project: 1and1/WebApi.HttpOptions

Public Methods

Method Description
CustomHeaderHandler ( string name, string value ) : System.Net.Http

Creates a new custom header handler.

Protected Methods

Method Description
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Method Details

CustomHeaderHandler() public method

Creates a new custom header handler.
public CustomHeaderHandler ( string name, string value ) : System.Net.Http
name string The name of the header to add.
value string The value of the header to add.
return System.Net.Http

SendAsync() protected method

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
return Task