Module io.inverno.mod.web.server
Package io.inverno.mod.web.server
Class ContinueInterceptor<A extends ExchangeContext>
java.lang.Object
io.inverno.mod.web.server.ContinueInterceptor<A>
- Type Parameters:
A
- the type of the exchange context
- All Implemented Interfaces:
ExchangeInterceptor<A,
WebExchange<A>>
public class ContinueInterceptor<A extends ExchangeContext>
extends Object
implements ExchangeInterceptor<A,WebExchange<A>>
A web exchange interceptor that sends an interim 100 Continue response to the client on requests that contain expect: 100-continue
HTTP header as defined by
RFC 7231 Section 5.1.1.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMono
<? extends WebExchange<A>> intercept
(WebExchange<A> exchange) Intercepts the exchange before the exchange handler is invoked.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.http.server.ExchangeInterceptor
andThen, compose
-
Constructor Details
-
ContinueInterceptor
public ContinueInterceptor()
-
-
Method Details
-
intercept
Description copied from interface:ExchangeInterceptor
Intercepts the exchange before the exchange handler is invoked.
- Specified by:
intercept
in interfaceExchangeInterceptor<A extends ExchangeContext,
WebExchange<A extends ExchangeContext>> - Parameters:
exchange
- the server exchange to handle- Returns:
- a Mono emitting the exchange or an instrumented exchange to continue the exchange handling chain or an empty Mono to stop the exchange handling chain
-