Hi,

I am working on the Spring framework and we are trying to properly update
some of our helper classes to HC 4.3[1]. 4.3 has moved some configuration
to a RequestConfig object and does not allow the HttpClient to be
customized once it has been built (as far as I can see!).

Our factory has the ability to set the read or connection timeout in a
convenient way and we make sure to update the underlying infrastructure.
With 4.3 we have moved that code to the creation of a custom RequestConfig
instance per request based on the state of the factory.

Instead of overriding everything as we do know, I'd like to be able to
*merge* our customizations with the default settings of the current http
client. But there is no accessor to the default RequestConfig object. Is
that intended?

The only solution I could see would be to request the user to pass the
HttpClient to use *and/or* the default RequestConfig to use. That feels odd
since the latter can be set in the former (but I can't access it once the
client has been built).

Thoughts?

S.

[1] https://jira.spring.io/browse/SPR-12166 -
https://jira.spring.io/browse/SPR-12540

Reply via email to