[java] Add proxy support to NettyClient
* [java] Add proxy support to NettyClient
* [java] Remove unused import in NettyClient
Closes
@@ -94,7 +94,9 @@ private static AsyncHttpClient createHttpClient(ClientConfig config) {
.setNettyTimer(TIMER)
.setRequestTimeout(toClampedInt(config.readTimeout().toMillis()))
.setConnectTimeout(toClampedInt(config.connectionTimeout().toMillis()))
- .setReadTimeout(toClampedInt(config.readTimeout().toMillis()));
+ .setReadTimeout(toClampedInt(config.readTimeout().toMillis()))
+ .setUseProxyProperties(true)
+ .setUseProxySelector(true);
return Dsl.asyncHttpClient(builder);
}
