public interface HttpServerFilter extends HttpFilter
HttpFilter and provides the response as a MutableHttpResponse.HttpFilterHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier and Type | Method and Description |
|---|---|
default Publisher<? extends HttpResponse<?>> |
doFilter(HttpRequest<?> request,
FilterChain chain)
Intercepts a
HttpRequest. |
Publisher<MutableHttpResponse<?>> |
doFilter(HttpRequest<?> request,
ServerFilterChain chain)
Variation of the
doFilter(HttpRequest, FilterChain) method that accepts a ServerFilterChain
which allows to mutate the outgoing HTTP response. |
Publisher<MutableHttpResponse<?>> doFilter(HttpRequest<?> request, ServerFilterChain chain)
doFilter(HttpRequest, FilterChain) method that accepts a ServerFilterChain
which allows to mutate the outgoing HTTP response.request - The requestchain - The chainPublisher that emits a MutableHttpResponsedoFilter(HttpRequest, FilterChain)default Publisher<? extends HttpResponse<?>> doFilter(HttpRequest<?> request, FilterChain chain)
HttpFilterHttpRequest.doFilter in interface HttpFilterrequest - The HttpRequest instancechain - The FilterChain instancePublisher for the Http response