hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: reconfiguring a running HttpClient instance
Date Fri, 05 Apr 2013 13:25:45 GMT
On Fri, 2013-04-05 at 14:30 +0200, Francois-Xavier Bonnet wrote:
> No, you cannot reconfigure an existing instance. An HttpClient is now an
> immutable object. If you need to change some settings, you have to create a
> new HtpClient.
> 
> 

This is absolutely true. However, generally one should rarely need to
reconfigure an existing HttpClient instance. Pretty much all HttpClient
level settings are just defaults that can always be overridden either at
the request level (through RequestConfig) or at the session level
(through HttpContext).

Hope this helps

Oleg

> 2013/4/5 Simone Tripodi <simonetripodi@apache.org>
> 
> > Hi all again mates,
> >
> > sorry for the beginner's question, but I am now in the middle of the need
> > of reconfiguring a running instance of the HttpClient - is there any way,
> > without using the deprecated methods, to reconfigure some parameters, such
> > us the proxy and so on?
> >
> > Many thanks in advance, all the best!
> > -Simo
> >
> > http://people.apache.org/~simonetripodi/
> > http://simonetripodi.livejournal.com/
> > http://twitter.com/simonetripodi
> > http://www.99soft.org/
> >



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message