The following tables list the members exposed by HttpServer.
Name | Description | |
---|---|---|
HttpServer Constructor | Constructs the HttpServer with a fixed thread-pool size. |
Name | Description | |
---|---|---|
ApplicationPath | Returns the path being used to host this server instance, for example return "/root/" when prefixes = "http://*:8080/root" | |
Context | Returns a thread-static HttpListenerContext of the current http request, or null if there is none. | |
ShutdownEvent | Exposes a WaitHandle that can be used to signal other threads that the HTTP server is shutting down. |
Name | Description | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Start | Starts the HttpServer listening on the prefixes supplied. use "http://+:80/" to match any host identifier not already mapped, or "http://*:80/" to match all host identifiers. | |
Stop | Stops the HTTP server and all worker threads. |
Name | Description | |
---|---|---|
OnError | Raised when an unhandled exception occurs, you can use HttpServer.Context to respond to the http client if needed. | |
ProcessRequest | Performs the processing of the request on one of the worker threads |