ChannelPipeline pipeline = ch.pipeline();
if (sslHelper.isSSL()) {
pipeline.addLast("ssl", sslHelper.createSslHandler(vertx, false));
}
pipeline.addLast("flashpolicy", new FlashPolicyHandler());
pipeline.addLast("httpDecoder", new HttpRequestDecoder(4096, 8192, 8192, false));
pipeline.addLast("httpEncoder", new VertxHttpResponseEncoder());
if (options.isCompressionSupported()) {
pipeline.addLast("deflater", new HttpChunkContentCompressor());
}
if (sslHelper.isSSL() || options.isCompressionSupported()) {