none, // compressionEnabled
none, // acceptAnyCertificate
noneSSLConfig);
// Build a secure config out of the client config:
NingAsyncHttpClientConfigBuilder secureBuilder = new NingAsyncHttpClientConfigBuilder(clientConfig);
AsyncHttpClientConfig secureDefaults = secureBuilder.build();
// You can directly use the builder for specific options once you have secure TLS defaults...
AsyncHttpClientConfig customConfig = new AsyncHttpClientConfig.Builder(secureDefaults)
.setProxyServer(new com.ning.http.client.ProxyServer("127.0.0.1", 38080))
.setCompressionEnabled(true)