spring-framework
5.3.39

# queryParam

fun queryParam(name: String, predicate: (String) -> Boolean, f: suspend (ServerRequest) -> ServerResponse)
Content copied to clipboard

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

## See also

org.springframework.web.reactive.function.server.RouterFunctions
fun queryParam(name: String, predicate: (String) -> Boolean): RequestPredicate
Content copied to clipboard

Return a RequestPredicate that tests the request's query parameter of the given name against the given predicate.

#### Return

a predicate that matches the given predicate against the query parameter of the given name

## See also

org.springframework.web.reactive.function.server.ServerRequest

#queryParam

## Parameters

name

the name of the query parameter to test against

predicate

the predicate to test against the query parameter value