Package io.micronaut.http.filter
Interface HttpServerFilter
- All Superinterfaces:
HttpFilter,Ordered
An HttpServerFilter extends
HttpFilter and provides the response as a MutableHttpResponse.- 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.doFilter(HttpRequest<?> request, ServerFilterChain chain) Variation of thedoFilter(HttpRequest, FilterChain)method that accepts aServerFilterChainwhich allows to mutate the outgoing HTTP response.
-
Method Details
-
doFilter
Variation of thedoFilter(HttpRequest, FilterChain)method that accepts aServerFilterChainwhich allows to mutate the outgoing HTTP response.- Parameters:
request- The requestchain- The chain- Returns:
- A
Publisherthat emits aMutableHttpResponse - See Also:
-
doFilter
Description copied from interface:HttpFilterIntercepts aHttpRequest.- Specified by:
doFilterin interfaceHttpFilter- Parameters:
request- TheHttpRequestinstancechain- TheFilterChaininstance- Returns:
- A
Publisherfor the Http response
-