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", newnetty5. channel. ChannelPipeline HttpServerCodec()); p.addLast("respondExpectContinue", newHttpServerExpectContinueHandler()); ... p.addLast("handler", new HttpRequestHandler());
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected HttpResponse | acceptMessage(BufferAllocator allocator, HttpRequest request)
Produces a |
| public void | channelRead(ChannelHandlerContext ctx, Object msg)
Overrides default io. Channel has read a message from the peer.
|
| private static DefaultFullHttpResponse | |
| protected HttpResponse | rejectResponse(BufferAllocator allocator, HttpRequest request)
Returns the appropriate 4XX |
| HttpServerExpectContinueHandler | back to summary |
|---|---|
| public HttpServerExpectContinueHandler() | |
| acceptMessage | back to summary |
|---|---|
| protected HttpResponse acceptMessage(BufferAllocator allocator, HttpRequest request) Produces a | |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception Overrides default io. Doc from io. Invoked when the current
| |
| newEmptyResponse | back to summary |
|---|---|
| private static DefaultFullHttpResponse newEmptyResponse(BufferAllocator allocator, HttpResponseStatus status) | |
| rejectResponse | back to summary |
|---|---|
| protected HttpResponse rejectResponse(BufferAllocator allocator, HttpRequest request) Returns the appropriate 4XX | |