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

filter

fun filter(filterFunction: (ServerRequest, (ServerRequest) -> Mono<ServerResponse>) -> Mono<ServerResponse>): Unit

Filters all routes created by this router with the given filter function. Filter functions are typically used to address cross-cutting concerns, such as logging, security, etc.

Parameters

filterFunction - the function to filter all routes built by this router

Since
5.2