public class PreFlightRequestWebFilter extends Object implements WebFilter
PreFlightRequestHandler and bypasses the rest of the chain.
A WebFlux application can simply inject PreFlightRequestHandler and use
it to create an instance of this WebFilter since @EnableWebFlux
declares DispatcherHandler as a bean and that is a
PreFlightRequestHandler.
| Constructor and Description |
|---|
PreFlightRequestWebFilter(PreFlightRequestHandler handler)
Create an instance that will delegate to the given handler.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
filter(ServerWebExchange exchange,
WebFilterChain chain)
Process the Web request and (optionally) delegate to the next
WebFilter through the given WebFilterChain. |
public PreFlightRequestWebFilter(PreFlightRequestHandler handler)
public reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain)
WebFilterWebFilter through the given WebFilterChain.