From: Florimond Manca Date: Fri, 29 Jul 2022 12:21:58 +0000 (+0200) Subject: Expand docs about retries (#2311) X-Git-Tag: 0.23.1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93de1980fa77f15c6b23cbaf2422c0a812caf243;p=thirdparty%2Fhttpx.git Expand docs about retries (#2311) Co-authored-by: Tom Christie --- diff --git a/docs/advanced.md b/docs/advanced.md index 5da53118..64bd5fc5 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -1093,7 +1093,7 @@ class directly, and pass it to the client instance. One example is the >>> client = httpx.Client(transport=transport) ``` -Connection retries are also available via this interface. +Connection retries are also available via this interface. Requests will be retried the given number of times in case an `httpx.ConnectError` or an `httpx.ConnectTimeout` occurs, allowing smoother operation under flaky networks. If you need other forms of retry behaviors, such as handling read/write errors or reacting to `503 Service Unavailable`, consider general-purpose tools such as [tenacity](https://github.com/jd/tenacity). ```pycon >>> import httpx