Skip to content
Myr

Fix typo in 'Streaming responses' docs (#744)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Luís Gustavo · committed by Tom Christie · parent 7b576fa · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/async.md+2 added-2 removed
65 unmodified lines
6667```python68>>> client = httpx.AsyncClient()69>>> async with client.stream('GET', 'https://www.example.com/') as response:70>>> async for chunk in r.aiter_content():70>>> async for chunk in response.aiter_bytes():71>>> ...72```7374The async response streaming methods are:7576* `Response.aread()` - For conditionally reading a response inside a stream block.77* `Response.aiter_content()` - For streaming the response content as bytes.77* `Response.aiter_bytes()` - For streaming the response content as bytes.78* `Response.aiter_text()` - For streaming the response content as text.79* `Response.aiter_lines()` - For streaming the response content as lines of text.80* `Response.aiter_raw()` - For streaming the raw response bytes, without applying content decoding.81* `Response.aclose()` - For closing the response. You don't usually need this, since `.stream` block close the response automatically on exit.
129 unmodified lines