C# Class WebApiDoodle.Web.WebHostEx.MessageHandlers.RemoveServerHeaderMessageHandler

A delegating handler which removes the 'Server' header from the response.
Register this as early as possible inside the message handler pipeline because if any unhandled expection occurs during the pipiline and isn't converted into a HttpResponseMessage, this handler won't be able to remove 'Server' header from the response.
Inheritance: System.Net.Http.DelegatingHandler
ファイルを表示 Open project: tugberkugurlu/WebAPIDoodle

Protected Methods

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

Method Details

SendAsync() protected method

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