toHandler

Helper method to produce an HttpRequestHandler from a function.

Parameters

fn HttpRequestHandlerFunction

The function that will handle requests.

Return Value

The request handler.