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

nest

fun RequestPredicate.nest(r: RouterFunctionDsl.() -> Unit): Unit

Route to the given router function if the given request predicate applies. This method can be used to create nested routes, where a group of routes share a common path (prefix), header, or other request predicate.

See Also

RouterFunctions.nest

fun String.nest(r: RouterFunctionDsl.() -> Unit): Unit

Route to the given router function if the given request predicate (String processed as a path predicate) applies. This method can be used to create nested routes, where a group of routes share a common path (prefix), header, or other request predicate.

See Also

RouterFunctions.nest

RequestPredicates.path