HttpRequestHandler.of

Gets a request handler that invokes the given function.

  1. HttpRequestHandler of(void function(ref ServerHttpRequest, ref ServerHttpResponse) fn)
    interface HttpRequestHandler
  2. HttpRequestHandler of(void delegate(ref ServerHttpRequest, ref ServerHttpResponse) dg)

Parameters

fn void function

The function to invoke when handling requests.

Return Value

The request handler.