spring-framework / org.springframework.web.servlet.function / RouterFunctionDsl / path

path

fun path(pattern: String, f: (ServerRequest) -> ServerResponse): Unit

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

See Also

RouterFunctions.route

fun path(pattern: String): RequestPredicate

Return a RequestPredicate that tests the request path against the given path pattern.

See Also

RequestPredicates.path