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

invoke

operator fun RequestPredicate.invoke(f: (ServerRequest) -> Mono<ServerResponse>): Unit

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

See Also

RouterFunctions.route

operator fun String.invoke(f: (ServerRequest) -> Mono<ServerResponse>): Unit

Route to the given handler function if the given predicate (String processed as a path predicate) applies.

See Also

RouterFunctions.route