This is what the base client library should support.
When using Reactor Netty, you can do something like:
ReactorClientHttpConnector connector = new ReactorClientHttpConnector(options -> options
.httpProxy(addressSpec -> {
return addressSpec.host("proxyhost"); // or any other method on addressSpec
}));
WebClient client = WebClient.builder().clientConnector(connector).build();
source
share