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 org.reactivestreams.Publisher<? extends HttpResponse<?>> |
doFilter(HttpRequest<?> request,
FilterChain chain)
Intercepts a
HttpRequest . |
org.reactivestreams.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. |
org.reactivestreams.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 org.reactivestreams.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