public interface HttpServerFilter extends HttpFilter
HttpFilter
and provides the response as a MutableHttpResponse
.HttpFilter
HIGHEST_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 MutableHttpResponse
doFilter(HttpRequest, FilterChain)
default Publisher<? extends HttpResponse<?>> doFilter(HttpRequest<?> request, FilterChain chain)
HttpFilter
HttpRequest
.doFilter
in interface HttpFilter
request
- The HttpRequest
instancechain
- The FilterChain
instancePublisher
for the Http response