Skip to content
Myr

typo: Reading a response expose response text, not request text (#3359)

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

authored by Colin Bounouar · committed by GitHub · parent 1bf1fc0 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/compatibility.md+1 added-1 removed
141 unmodified lines
142* `.iter_bytes()` - Instead of `response.iter_content()`143* `.iter_text()` - Instead of `response.iter_content(decode_unicode=True)`144* `.iter_lines()` - Corresponding to `response.iter_lines()`145* `.iter_raw()` - Use this instead of `response.raw`146* `.read()` - Read the entire response body, making `request.text` and `response.content` available.146* `.read()` - Read the entire response body, making `response.text` and `response.content` available.147148## Timeouts149150HTTPX defaults to including reasonable [timeouts](quickstart.md#timeouts) for all network operations, while Requests has no timeouts by default.
80 unmodified lines