Skip to content

Commit 4a5483a

Browse files
Include example with upload/download rates
1 parent 68912b7 commit 4a5483a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/networking.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ with httpx.rate_limit("25MB/s"):
129129
...
130130
```
131131

132+
Differing rate limits for upload and download speeds may be applied.
133+
134+
```python
135+
with httpx.rate_limit(upload="10MB/s", download="25MB/s"):
136+
...
137+
```
138+
132139
Supported data rates must be specified in bytes per second... `B/s`, `KB/s`, `MB/s`, `GB/s`, `TB/s`.
133140

134141
---

0 commit comments

Comments
 (0)