HttpServer

A simple HTTP server that accepts requests on a given port and address, and lets a configured HttpRequestHandler produce a response, to send back to the client.

Constructors

this
this(HttpRequestHandler handler, string hostname, ushort port, size_t receiveBufferSize, bool verbose, size_t workerPoolSize)
Undocumented in source.

Members

Functions

isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
setVerbose
HttpServer setVerbose(bool verbose)

Sets the server's verbosity.

start
void start()

Starts the server on the calling thread, so that it will begin accepting HTTP requests.

stop
void stop()

Shuts down the server by closing the server socket, if possible. Note that this is not a blocking call, and the server will shutdown soon.

Variables

receiveBufferSize
size_t receiveBufferSize;
Undocumented in source.

Meta