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

after

fun after(responseProcessor: (ServerRequest, ServerResponse) -> ServerResponse): Unit

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

Parameters

responseProcessor - a function that transforms the response

Since
5.2