Package io.micronaut.http.filter
Interface HttpClientFilter
- All Superinterfaces:
HttpFilter,Ordered
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 aMutableHttpRequestallowing the request to be modified.
-
Method Details
-
doFilter
Publisher<? extends HttpResponse<?>> doFilter(MutableHttpRequest<?> request, ClientFilterChain chain) A variation ofHttpFilter.doFilter(HttpRequest, FilterChain)that receives aMutableHttpRequestallowing 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:HttpFilterIntercepts aHttpRequest.- Specified by:
doFilterin interfaceHttpFilter- Parameters:
request- TheHttpRequestinstancechain- TheFilterChaininstance- Returns:
- A
Publisherfor the Http response
-