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

before

fun before(requestProcessor: (ServerRequest) -> ServerRequest): Unit

Filter the request object for all routes created by this builder with the given request processing function. Filters are typically used to address cross-cutting concerns, such as logging, security, etc.

Parameters

requestProcessor - a function that transforms the request

Since
5.2