Package io.micronaut.http.filter
Interface HttpClientFilter
- All Superinterfaces:
HttpFilter
,Ordered
- All Known Implementing Classes:
ClientServerContextFilter
An HttpClientFilter extends
HttpFilter
and allows the passed request to be mutated. HttpClientFilter are
specific to HTTP client requests and are not processed by the server.- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault Publisher<? extends HttpResponse<?>>
doFilter
(HttpRequest<?> request, FilterChain chain) Intercepts aHttpRequest
.Publisher<? extends HttpResponse<?>>
doFilter
(MutableHttpRequest<?> request, ClientFilterChain chain) A variation ofHttpFilter.doFilter(HttpRequest, FilterChain)
that receives aMutableHttpRequest
allowing the request to be modified.
-
Method Details
-
doFilter
Publisher<? extends HttpResponse<?>> doFilter(MutableHttpRequest<?> request, ClientFilterChain chain) A variation ofHttpFilter.doFilter(HttpRequest, FilterChain)
that receives aMutableHttpRequest
allowing the request to be modified.- Parameters:
request
- The requestchain
- The filter chain- Returns:
- The publisher of the response
- See Also:
-
doFilter
Description copied from interface:HttpFilter
Intercepts aHttpRequest
.- Specified by:
doFilter
in interfaceHttpFilter
- Parameters:
request
- TheHttpRequest
instancechain
- TheFilterChain
instance- Returns:
- A
Publisher
for the Http response
-