HttpResponse to HttpRequests which contain a 'expect: 100-continue' header. It
should only be used for applications which do not install the HttpObjectAggregator.
By default it accepts all expectations.
Since HttpServerExpectContinueHandler expects HttpRequests it should be added after HttpServerCodec but before any other handlers that might send a HttpResponse.
io.p = ...; ... p.addLast("serverCodec", newnetty. channel. ChannelPipeline HttpServerCodec()); p.addLast("respondExpectContinue", newHttpServerExpectContinueHandler()); ... p.addLast("handler", new HttpRequestHandler());
| Modifier and Type | Field and Description |
|---|---|
| private static final FullHttpResponse | |
| private static final FullHttpResponse |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected HttpResponse | acceptMessage(HttpRequest request)
Produces a |
| public void | channelRead(ChannelHandlerContext ctx, Object msg)
Overrides io. Implements io. ChannelHandlerContext#fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline.
|
| protected HttpResponse | rejectResponse(HttpRequest request)
Returns the appropriate 4XX |
| ACCEPT | back to summary |
|---|---|
| private static final FullHttpResponse ACCEPT | |
| EXPECTATION_FAILED | back to summary |
|---|---|
| private static final FullHttpResponse EXPECTATION_FAILED | |
| HttpServerExpectContinueHandler | back to summary |
|---|---|
| public HttpServerExpectContinueHandler() | |
| acceptMessage | back to summary |
|---|---|
| protected HttpResponse acceptMessage(HttpRequest request) Produces a | |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception Overrides io. Implements io. Doc from io. Calls
| |
| rejectResponse | back to summary |
|---|---|
| protected HttpResponse rejectResponse(HttpRequest request) Returns the appropriate 4XX | |