toHandler

Helper method to produce an HttpRequestHandler from a function.

Parameters

fn F

The function that will handle requests.

Return Value

The request handler.