C# Class Owin.Host.MonoHttpListener.OwinHttpListener

This wraps HttpListener and exposes it as an OWIN compatible server.
Inheritance: IDisposable
显示文件 Open project: jkells/Owin.Host.MonoHttpListener Class Usage Examples

Private Properties

Property Type Description
EndRequest void
GetPathAndQuery void
HandleAcceptError CatchInfoBase.CatchResult
HandleAcceptError void
OffloadStartNextRequest void
OwinHttpListener System
PopulateServerKeys void
Start void
StartNextRequestAsync void
StartProcessingRequest void
Stop void

Public Methods

Method Description
Dispose ( ) : void

Shuts down the listener and disposes it.

SetPumpLimits ( int maxAccepts, int maxRequests ) : void

These are merged as one call because they should be swapped out atomically. This controls how many requests the server attempts to process concurrently.

Private Methods

Method Description
EndRequest ( OwinHttpListenerContext owinContext, Exception ex ) : void
GetPathAndQuery ( string rawUrl, string &pathBase, string &path, string &query ) : void
HandleAcceptError ( CatchInfo errorInfo ) : CatchInfoBase.CatchResult
HandleAcceptError ( Exception ex ) : void
OffloadStartNextRequest ( ) : void
OwinHttpListener ( ) : System

Creates a listener wrapper that can be configured by the user before starting.

PopulateServerKeys ( CallEnvironment env ) : void
Start ( Mono listener, object>.Func appFunc, object>.IList addresses, object>.IDictionary capabilities ) : void

Starts the listener and request processing threads.

StartNextRequestAsync ( ) : void
StartProcessingRequest ( Mono.Net.HttpListenerContext context ) : void
Stop ( ) : void

Method Details

Dispose() public method

Shuts down the listener and disposes it.
public Dispose ( ) : void
return void

SetPumpLimits() public method

These are merged as one call because they should be swapped out atomically. This controls how many requests the server attempts to process concurrently.
public SetPumpLimits ( int maxAccepts, int maxRequests ) : void
maxAccepts int The maximum number of pending request receives.
maxRequests int The maximum number of active requests being processed.
return void