spring-framework
5.3.39

# method

fun method(httpMethod: HttpMethod, f: (ServerRequest) -> ServerResponse)
Content copied to clipboard

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

## See also

org.springframework.web.servlet.function.RouterFunctions
fun method(httpMethod: HttpMethod): RequestPredicate
Content copied to clipboard

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