HttpRequestHandler.of

Gets a request handler that invokes the given delegate.

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

Parameters

dg void delegate

The delegate to invoke when handling requests.

Return Value

The request handler.