p.addLast("ssl", new SslHandler(engine));
}
p.addLast("codec", new HttpClientCodec());
p.addLast("aggregator", new HttpObjectAggregator(maxContentLengthBytes));
p.addLast("readTimeout", new ReadTimeoutHandler(requestParams.readTimeoutNanos, TimeUnit.NANOSECONDS));
p.addLast("handler", new SimpleChannelInboundHandler<HttpObject>(false) {
@Override
public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Exception {
if (msg instanceof FullHttpResponse) {
final FullHttpResponse response = (FullHttpResponse) msg;