Closed as not planned
Closed as not planned
Description
Currently the ReactorClientHttpRequestFactory
creates within the default constructor an instance of HttpClient
just with create()
:
public ReactorClientHttpRequestFactory() {
this(defaultInitializer.apply(HttpClient.create()));
}
In this setup the HttpClient
does not apply any system properties for proxy settings (like e.g. https.proxyHost
and https.proxyPort
). Therefore the following code is necessary:
public ReactorClientHttpRequestFactory() {
this(defaultInitializer.apply(HttpClient.create().proxyWithSystemProperties()));
}
As other http client implementations such as Apache HttpClient do apply system properties for proxies in the default setup, this should be the same for the netty http client inside the ReactorClientHttpRequestFactory
.