Java Code Examples for io.netty.handler.codec.http.HttpResponseStatus#CONTINUE
The following examples show how to use
io.netty.handler.codec.http.HttpResponseStatus#CONTINUE .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: zuul File: HttpServerLifecycleChannelHandler.java License: Apache License 2.0 | 5 votes |
@Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { if (msg instanceof HttpResponse) { ctx.channel().attr(ATTR_HTTP_RESP).set((HttpResponse) msg); } try { super.write(ctx, msg, promise); } finally { if (msg instanceof LastHttpContent) { boolean dontFireCompleteYet = false; if (msg instanceof HttpResponse) { // Handle case of 100 CONTINUE, where server sends an initial 100 status response to indicate to client // that it can continue sending the initial request body. // ie. in this case we don't want to consider the state to be COMPLETE until after the 2nd response. if (((HttpResponse) msg).status() == HttpResponseStatus.CONTINUE) { dontFireCompleteYet = true; } } if (!dontFireCompleteYet) if (promise.isDone()) { fireCompleteEventIfNotAlready(ctx, CompleteReason.SESSION_COMPLETE); } else { promise.addListener(future -> { fireCompleteEventIfNotAlready(ctx, CompleteReason.SESSION_COMPLETE); }); } } } }
Example 2
Source Project: Sentinel-Dashboard-Nacos File: HttpServerHandler.java License: Apache License 2.0 | 4 votes |
private void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.write(response); }
Example 3
Source Project: termd File: HttpRequestHandler.java License: Apache License 2.0 | 4 votes |
private static void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.writeAndFlush(response); }
Example 4
Source Project: Sentinel File: HttpServerHandler.java License: Apache License 2.0 | 4 votes |
private void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.write(response); }
Example 5
Source Project: arthas File: HttpRequestHandler.java License: Apache License 2.0 | 4 votes |
private static void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.writeAndFlush(response); }
Example 6
Source Project: pulsar File: NettyHttpServerHandler.java License: Apache License 2.0 | 4 votes |
private static void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.write(response); }
Example 7
Source Project: aesh-readline File: HttpRequestHandler.java License: Apache License 2.0 | 4 votes |
private static void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.writeAndFlush(response); }
Example 8
Source Project: examples-javafx-repos1 File: EchoServerHttpRequestHandler.java License: Apache License 2.0 | 4 votes |
private void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.writeAndFlush( response ); }
Example 9
Source Project: termd File: HttpRequestHandler.java License: Apache License 2.0 | 4 votes |
private static void send100Continue(ChannelHandlerContext ctx) { FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.CONTINUE); ctx.writeAndFlush(response); }