code: public static final ChannelInitializer<Channel> secureHttpClient(
        final SimpleChannelInboundHandler<HttpResponse> handler,
        final SSLContext sslContext) {
      return new ChannelInitializer<Channel>() {
  
        @Override
        protected void initChannel(Channel channel) throws Exception {
          ChannelPipeline pipeline = channel.pipeline();
          SSLEngine sslEngine = sslContext.createSSLEngine();
          sslEngine.setUseClientMode(true);
          pipeline.addLast("ssl", new SslHandler(sslEngine));
          pipeline.addLast("httpCodec", new HttpClientCodec());
          pipeline.addLast("aggregator", new HttpObjectAggregator(10 * 1024 * 1024));
          pipeline.addLast("httpClientHandler", handler);
        }
      };
    }
docs: Returns a client-side channel initializer capable of securely sending
  and receiving HTTP requests and responses.
  <p/>
  <p>Communications will be encrypted as per the configured SSL context</p>
  
  @param handler the handler in charge of implementing the business logic
  @param sslContext the SSL context which drives the security of the
  link to the server.