spring-framework / org.springframework.web.reactive.function.server / RouterFunctionDsl / queryParam

queryParam

fun queryParam(name: String, predicate: (String) -> Boolean, f: (ServerRequest) -> Mono<ServerResponse>): Unit

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

See Also

RouterFunctions.route

fun queryParam(name: String, predicate: (String) -> Boolean): RequestPredicate

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

Parameters

name - the name of the query parameter to test against

predicate - predicate to test against the query parameter value

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

See Also

ServerRequest