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.
Currently the
ReactorClientHttpRequestFactorycreates within the default constructor an instance ofHttpClientjust withcreate():In this setup the
HttpClientdoes not apply any system properties for proxy settings (like e.g.https.proxyHostandhttps.proxyPort). Therefore the following code is necessary: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.