Method | Description | |
---|---|---|
Dispose ( ) : void | ||
HTTPResponse_Error ( object sender, |
||
Shutdown ( ) : void |
Shutdowns the server and stops listening for TCP connexions. At this point, the server becomes completely unreachable. It cannot be restarted.
|
|
Start ( ) : void |
Starts listening on the TCP socket and initiates the routing mechanism. At this point, the server become reachable by any client.
|
|
WebServer ( int port = DefaultPortHttp, int threadPoolSize = CustomThreadPool.DefaultThreadPoolSize, ThreadPriority priority = DefaultThreadPriority ) : System |
Creates a WebServer that runs on the specified port and can be multithreaded A server must be multithreaded in order to use the Keep-Alive HTTP mechanism. |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void | ||
OnError ( |
||
OnLog ( |
Method | Description | |
---|---|---|
ExtractPOST ( |
||
ExtractQuery ( |
||
FillHeaders ( |
||
HandleClient ( |
||
InferEncoding ( |
||
Listen ( ) : void | ||
_routeSolver_Error ( object sender, |
public HTTPResponse_Error ( object sender, |
||
sender | object | |
e | ||
return | void |
protected OnError ( |
||
args | ||
return | void |
protected OnLog ( |
||
request | ||
response | ||
return | void |
public WebServer ( int port = DefaultPortHttp, int threadPoolSize = CustomThreadPool.DefaultThreadPoolSize, ThreadPriority priority = DefaultThreadPriority ) : System | ||
port | int | /// The port on which to run the server (default 80) /// |
threadPoolSize | int | /// The maximum number of threads to be created. /// CustomThreadPool.DefaultThreadPoolSize means use default operating system value. /// |
priority | ThreadPriority | /// The priority of the web server threads. /// |
return | System |