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 aServerFilterChain
which allows to mutate the outgoing HTTP response.
-
Method Details
-
doFilter
Variation of thedoFilter(HttpRequest, FilterChain)
method that accepts aServerFilterChain
which allows to mutate the outgoing HTTP response.- Parameters:
request
- The requestchain
- The chain- Returns:
- A
Publisher
that emits aMutableHttpResponse
- 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
-