Package io.micronaut.http.filter
Interface HttpServerFilter
-
- All Superinterfaces:
HttpFilter
,io.micronaut.core.order.Ordered
- All Known Implementing Classes:
OncePerRequestHttpServerFilter
public interface HttpServerFilter extends HttpFilter
An HttpServerFilter extendsHttpFilter
and provides the response as aMutableHttpResponse
.- Since:
- 1.0
- See Also:
HttpFilter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.reactivestreams.Publisher<? extends HttpResponse<?>>
doFilter(HttpRequest<?> request, FilterChain chain)
Intercepts aHttpRequest
.org.reactivestreams.Publisher<MutableHttpResponse<?>>
doFilter(HttpRequest<?> request, ServerFilterChain chain)
Variation of thedoFilter(HttpRequest, FilterChain)
method that accepts aServerFilterChain
which allows to mutate the outgoing HTTP response.
-
-
-
Method Detail
-
doFilter
org.reactivestreams.Publisher<MutableHttpResponse<?>> doFilter(HttpRequest<?> request, ServerFilterChain chain)
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(HttpRequest, FilterChain)
-
doFilter
default org.reactivestreams.Publisher<? extends HttpResponse<?>> doFilter(HttpRequest<?> request, FilterChain chain)
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
-
-