hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Eckenfels <e...@zusammenkunft.net>
Subject Re: RetryHandler Per GetMethod
Date Thu, 10 Nov 2016 10:38:53 GMT
In fact the retry handlers (some implementations)  already look at the method and only retry
idempotent methods

Gruss
Bernd
-- 
http://bernd.eckenfels.net




On Thu, Nov 10, 2016 at 11:15 AM +0100, "Oleg Kalnichevski" <olegk@apache.org> wrote:










On Wed, 2016-11-09 at 09:05 -0500, Murat Balkan wrote:
> Hello,
> 
> Is it possible to set a retry handler per HttpGet? The following code taken
> from the documentation only applies to 3x and seems to be deprecated.
> 
> 
> httpget.getParams().
>     setParameter(HttpMethodParams.RETRY_HANDLER, myretryhandler);
> 
> 
> What I want to achieve is to set disableAutomaticRetries on the httpclient
> level and set them at the httpget level.
> 
> Is this supported?
> 

No it is not, but one can use HttpContext attributes to customize the
handler's behavior on the per request basis.

Oleg


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







Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message