C# Class SelfishHttp.Server

Inheritance: IDisposable, IServerConfiguration
Afficher le fichier Open project: featurist/SelfishHttp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

OnDelete() public méthode

public OnDelete ( string path ) : IHttpResourceHandler
path string
Résultat IHttpResourceHandler

OnGet() public méthode

public OnGet ( string path ) : IHttpResourceHandler
path string
Résultat IHttpResourceHandler

OnHead() public méthode

public OnHead ( string path ) : IHttpResourceHandler
path string
Résultat IHttpResourceHandler

OnOptions() public méthode

public OnOptions ( string path ) : IHttpResourceHandler
path string
Résultat IHttpResourceHandler

OnPatch() public méthode

public OnPatch ( string path ) : IHttpResourceHandler
path string
Résultat IHttpResourceHandler

OnPost() public méthode

public OnPost ( string path ) : IHttpResourceHandler
path string
Résultat IHttpResourceHandler

OnPut() public méthode

public OnPut ( string path ) : IHttpResourceHandler
path string
Résultat IHttpResourceHandler

OnRequest() public méthode

public OnRequest ( ) : IHttpHandler
Résultat IHttpHandler

Server() public méthode

public Server ( ) : System
Résultat System

Server() public méthode

public Server ( int port ) : System
port int
Résultat System

Stop() public méthode

public Stop ( ) : void
Résultat void