public interface HttpClientFilter extends HttpFilter
HttpFilter
and allows the passed request to be mutated. HttpClientFilter are
specific to HTTP client requests and are not processed by the server.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<? extends HttpResponse<?>> |
doFilter(MutableHttpRequest<?> request,
ClientFilterChain chain)
A variation of
HttpFilter.doFilter(HttpRequest, FilterChain) that receives a MutableHttpRequest
allowing the request to be modified. |
org.reactivestreams.Publisher<? extends HttpResponse<?>> doFilter(MutableHttpRequest<?> request, ClientFilterChain chain)
HttpFilter.doFilter(HttpRequest, FilterChain)
that receives a MutableHttpRequest
allowing the request to be modified.request
- The requestchain
- The filter chainHttpFilter
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