HttpRequestHandler

Defines the request handler interface, which is called upon to handle an incoming HTTP request.

Members

Functions

handle
void handle(ServerHttpRequest request, ServerHttpResponse response)

Invoked to handle an incoming HTTP request. Implementations should read information from the request, and write to the response.

Static functions

of
HttpRequestHandler of(void function(ref ServerHttpRequest, ref ServerHttpResponse) fn)

Gets a request handler that invokes the given function.

of
HttpRequestHandler of(void delegate(ref ServerHttpRequest, ref ServerHttpResponse) dg)

Gets a request handler that invokes the given delegate.