fun method(httpMethod: HttpMethod, f: (ServerRequest) -> ServerResponse): Unit
Route to the given handler function if the given method predicate applies.
See Also
fun method(httpMethod: HttpMethod): RequestPredicate
Return a RequestPredicate that tests against the given HTTP method.
httpMethod
- the HTTP method to match to
Return
a predicate that tests against the given HTTP method