C# Class Blighttp.WebServer

Datei anzeigen Open project: epicvrvs/Blighttp Class Usage Examples

Public Properties

Property Type Description
UseRealIP bool

Public Methods

Method Description
Add ( Handler handler ) : void
HandleRequest ( Request request ) : Reply
Run ( ) : void
Terminate ( ) : void
WebServer ( string host, int port, bool useRealIP = false, IRequestObserver requestObserver = null, ICatchAll catchAll = null ) : System

Private Methods

Method Description
BindAndListen ( int listenCount = -1 ) : void
ConvertPath ( string path ) : List
TryHandlers ( Request request ) : Reply

Method Details

Add() public method

public Add ( Handler handler ) : void
handler Handler
return void

HandleRequest() public method

public HandleRequest ( Request request ) : Reply
request Request
return Reply

Run() public method

public Run ( ) : void
return void

Terminate() public method

public Terminate ( ) : void
return void

WebServer() public method

public WebServer ( string host, int port, bool useRealIP = false, IRequestObserver requestObserver = null, ICatchAll catchAll = null ) : System
host string
port int
useRealIP bool
requestObserver IRequestObserver
catchAll ICatchAll
return System

Property Details

UseRealIP public_oe property

public bool UseRealIP
return bool