Class NettyRequestSender


  • public final class NettyRequestSender
    extends Object
    • Method Detail

      • writeRequest

        public <T> void writeRequest​(NettyResponseFuture<T> future,
                                     io.netty.channel.Channel channel)
      • sendHttp2RequestBody

        public void sendHttp2RequestBody​(NettyResponseFuture<?> future,
                                         io.netty.handler.codec.http2.Http2StreamChannel streamChannel)
                                  throws IOException
        Sends the body of an HTTP/2 request whose HEADERS were already written with endStream=false because it carried Expect: 100-continue. Invoked by Continue100Interceptor once the server's 100 (Continue) arrives: writes the body as DATA frame(s) with endStream=true and releases the request.
        Throws:
        IOException
      • handleUnexpectedClosedChannel

        public void handleUnexpectedClosedChannel​(io.netty.channel.Channel channel,
                                                  NettyResponseFuture<?> future)
      • applyIoExceptionFiltersAndReplayRequest

        public boolean applyIoExceptionFiltersAndReplayRequest​(NettyResponseFuture<?> future,
                                                               IOException e,
                                                               io.netty.channel.Channel channel)
      • isClosed

        public boolean isClosed()
      • drainChannelAndExecuteNextRequest

        public void drainChannelAndExecuteNextRequest​(io.netty.channel.Channel channel,
                                                      NettyResponseFuture<?> future,
                                                      Request nextRequest)
      • drainChannelAndExecuteNextRequest

        public void drainChannelAndExecuteNextRequest​(io.netty.channel.Channel channel,
                                                      NettyResponseFuture<?> future,
                                                      Request nextRequest,
                                                      io.netty.util.concurrent.Future<io.netty.channel.Channel> whenHandshaked)