method

fun method(httpMethod: HttpMethod, f: (ServerRequest) -> ServerResponse)

Route to the given handler function if the given method predicate applies.

See also


Return a RequestPredicate that tests against the given HTTP method.

Return

a predicate that tests against the given HTTP method

Parameters

httpMethod

the HTTP method to match to