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.
responseProcessor
- a function that transforms the response
Since
5.2