Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/advanced/timeouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ You can set timeouts for an individual request:

```python
# Using the top-level API:
httpx.get('http://example.com/api/v1/example', timeout=10.0)
httpx.get('http://example.com/api/v1/example', timeout=10)

# Using a client instance:
with httpx.Client() as client:
client.get("http://example.com/api/v1/example", timeout=10.0)
client.get("http://example.com/api/v1/example", timeout=10)
```

Or disable timeouts for an individual request:
Expand Down Expand Up @@ -68,4 +68,4 @@ timeout = httpx.Timeout(10.0, connect=60.0)
client = httpx.Client(timeout=timeout)

response = client.get('http://example.com/')
```
```