C# Class System.Net.Http.OwinHttpMessageHandler

Represents an HttpMessageHanlder that can invoke a request directly against an OWIN pipeline (an 'AppFunc').
Inheritance: HttpMessageHandler
Mostra file Open project: damianh/OwinHttpMessageHandler Class Usage Examples

Public Methods

Method Description
OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task> appFunc ) : System

Initializes a new instance of the OwinHttpMessageHandler class.

OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task>,System.Func,System.Threading.Tasks.Task>> midFunc ) : System

Initializes a new instance of the OwinHttpMessageHandler class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Private Methods

Method Description
CheckDisposed ( ) : void
CheckDisposedOrStarted ( ) : void
CheckSetCookie ( HttpRequestMessage request, HttpResponseMessage response ) : void
IsBodylessRequest ( HttpRequestMessage req ) : bool
IsRedirectToGet ( int code ) : bool
SendInternalAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OwinHttpMessageHandler() public method

Initializes a new instance of the OwinHttpMessageHandler class.
appFunc
public OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task> appFunc ) : System
appFunc System.Func,System.Threading.Tasks.Task> An OWIN application function.
return System

OwinHttpMessageHandler() public method

Initializes a new instance of the OwinHttpMessageHandler class.
midFunc
public OwinHttpMessageHandler ( System.Func,System.Threading.Tasks.Task>,System.Func,System.Threading.Tasks.Task>> midFunc ) : System
midFunc System.Func,System.Threading.Tasks.Task>,System.Func,System.Threading.Tasks.Task>> An OWIN middleware function that will be terminated with a 404 Not Found.
return System

SendAsync() protected method

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