We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fe794 commit 624be66Copy full SHA for 624be66
library/src/com/loopj/android/http/AsyncHttpClient.java
@@ -278,6 +278,14 @@ public void setSSLSocketFactory(SSLSocketFactory sslSocketFactory) {
278
this.httpClient.getConnectionManager().getSchemeRegistry().register(new Scheme("https", sslSocketFactory, 443));
279
}
280
281
+ /**
282
+ * Sets the maximum number of retries for a particular Request.
283
+ * @param retries maximum number of retries per request
284
+ */
285
+ public void setMaxRetries(int retries) {
286
+ this.httpClient.setHttpRequestRetryHandler(new RetryHandler(retries));
287
+ }
288
+
289
/**
290
* Sets headers that will be added to all requests this client makes (before sending).
291
*
0 commit comments