RequestHandler

Members

Functions

onBody
void onBody(const ubyte[] data)

Invoked when we get part of body for the request.

onEOM
void onEOM()

Invoked when we finish receiving the body.

onError
void onError(HTTPErrorCode code)

Request failed. Maybe because of read/write error on socket or client not being able to send request in time.

onRequest
void onRequest(HTTPMessage headers)

Invoked when we have successfully fetched headers from client. This will always be the first callback invoked on your handler.

onResquest
void onResquest(HTTPMessage headers)

deprecated("Incorrect spelling. Using onRequest instead.")

requestComplete
void requestComplete()

Invoked when request processing has been completed and nothing more needs to be done. This may be a good place to log some stats and clean up resources. This is distinct from onEOM() because it is invoked after the response is fully sent. Once this callback has been received, downstream_ should be considered invalid.

Meta