On 11/5/22 6:44 AM, Oleg Kalnichevski wrote:
Hi Brent Having localAddress parameter at the request level was silly. This is a responsibility of the router planner that has nothing to do with individual requests.
Ok, makes sense.
Consider extending DefaultRoutePlanner and overriding its #determineLocalAddress method.
Ok, thanks. I had missed the HttpRoutePlanner property on the builder, seems obvious now that you've pointed it out. :-)
Our customers can configure use of a proxy and/use system properties, so I'll probably have to extend all three of the HttpRoutePlanner impls, and then install the right one using logic similar to what is in HttpClientBuilder.
Thanks, Brent