Match.Match

Matches a path and method type using a function callback.

Parameters

method HTTPMethod

The HTTP method matched.

path string

The path assigned to this route.

callback Temp function
(
HTTPServerRequest
,
HTTPServerResponse
)

A function callback handler for the route.

transformer Result function
(
Temp
)

A transformer that converts the handler's output.

Meta