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

invoke

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

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

See Also

RouterFunctions.route

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

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

See Also

RouterFunctions.route