From a5fcdfcf7dc0f1e2288b201b7bf25601fa3ce3af Mon Sep 17 00:00:00 2001 From: Florimond Manca Date: Thu, 23 Jan 2020 08:12:50 -0500 Subject: [PATCH] Document overriding num of retries per-request --- docs/advanced.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/advanced.md b/docs/advanced.md index ff192e4a54..075b74586c 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -511,10 +511,11 @@ Or enable them on a client instance, which results in the given `retries` being httpx.Client(retries=3) ``` -When using a client with retries enabled, you can still explicitly disable retries for a given request: +When using a client with retries enabled, you can still explicitly override or disable retries for a given request: ```python -response = client.get("https://example.org", retries=None) +client.get("https://example.org", retries=5) +client.get("https://example.org", retries=None) ``` ### Fine-tuning the retries configuration