Skip to content

Commit e38b5c3

Browse files
authored
Clarify Apache HTTP's default retry strategy (#652)
1 parent 73b1262 commit e38b5c3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.org

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,10 @@ content encodings.
372372
;; Some Multipart bodies can also support more keys (like :encoding
373373
;; and :mime-type), check src/clj-http/multipart.clj to see all flags
374374

375-
;; Apache's http client automatically retries on IOExceptions, if you
376-
;; would like to handle these retries yourself, you can specify a
377-
;; :retry-handler. Return true to retry, false to stop trying:
375+
;; Apache's HTTP client automatically retries some kinds of IOExceptions:
376+
;; https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/impl/client/DefaultHttpRequestRetryHandler.html
377+
;; If you would like to handle retries yourself, you can specify a :retry-handler.
378+
;; Return true to retry, false to stop trying:
378379
(client/post "http://example.org" {:multipart [["title" "Foo"]
379380
["Content/type" "text/plain"]
380381
["file" (clojure.java.io/file "/tmp/missing-file")]]

0 commit comments

Comments
 (0)