C# Class SelfishHttp.Server

Inheritance: IDisposable, IServerConfiguration
Show file Open project: featurist/SelfishHttp Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
OnDelete ( string path ) : IHttpResourceHandler
OnGet ( string path ) : IHttpResourceHandler
OnHead ( string path ) : IHttpResourceHandler
OnOptions ( string path ) : IHttpResourceHandler
OnPatch ( string path ) : IHttpResourceHandler
OnPost ( string path ) : IHttpResourceHandler
OnPut ( string path ) : IHttpResourceHandler
OnRequest ( ) : IHttpHandler
Server ( ) : System
Server ( int port ) : System
Stop ( ) : void

Private Methods

Method Description
AddHttpHandler ( string method, string path ) : IHttpResourceHandler
AuthenticationSchemeSelectorDelegate ( HttpListenerRequest httpRequest ) : AuthenticationSchemes
ChooseRandomUnusedPort ( ) : int
HandleNextRequest ( ) : void
HandleRequest ( IAsyncResult ar ) : void
IsOperationAbortedOnStoppingServer ( HttpListenerException e ) : bool

Return true if the exception is: The I/O operation has been aborted because of either a thread exit or an application request. Happens when we stop the server and the listening is cancelled.

Start ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

OnDelete() public method

public OnDelete ( string path ) : IHttpResourceHandler
path string
return IHttpResourceHandler

OnGet() public method

public OnGet ( string path ) : IHttpResourceHandler
path string
return IHttpResourceHandler

OnHead() public method

public OnHead ( string path ) : IHttpResourceHandler
path string
return IHttpResourceHandler

OnOptions() public method

public OnOptions ( string path ) : IHttpResourceHandler
path string
return IHttpResourceHandler

OnPatch() public method

public OnPatch ( string path ) : IHttpResourceHandler
path string
return IHttpResourceHandler

OnPost() public method

public OnPost ( string path ) : IHttpResourceHandler
path string
return IHttpResourceHandler

OnPut() public method

public OnPut ( string path ) : IHttpResourceHandler
path string
return IHttpResourceHandler

OnRequest() public method

public OnRequest ( ) : IHttpHandler
return IHttpHandler

Server() public method

public Server ( ) : System
return System

Server() public method

public Server ( int port ) : System
port int
return System

Stop() public method

public Stop ( ) : void
return void