Skip to content

Commit

Permalink
Document overriding num of retries per-request
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Jan 23, 2020
1 parent d3609c3 commit a5fcdfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5fcdfc

Please sign in to comment.