spring-framework
5.3.39

# nest

fun RequestPredicate.nest(r: RouterFunctionDsl.() -> Unit)
Content copied to clipboard

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

org.springframework.web.servlet.function.RouterFunctions
fun String.nest(r: RouterFunctionDsl.() -> Unit)
Content copied to clipboard

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

org.springframework.web.servlet.function.RouterFunctions
org.springframework.web.servlet.function.RequestPredicates