ServerWorkerThread

The server worker thread is a thread that processes incoming requests from an HttpServer.

Constructors

this
this(HttpServer server, RequestQueue requestQueue, int id)

Constructs this worker thread for the given server, with the given id.

Members

Functions

getReceiveBuffer
ubyte[]* getReceiveBuffer()

Gets a pointer to this worker's internal pre-allocated receive buffer.

getServer
HttpServer getServer()

Gets the server that this worker was created for.

isBusy
bool isBusy()

Tells whether this worker is currently busy handling a request.

Variables

id
const(int) id;

The id of this worker thread.