From: Colin Bounouar Date: Wed, 23 Oct 2024 19:06:45 +0000 (+0200) Subject: typo: Reading a response expose response text, not request text (#3359) X-Git-Tag: 0.28.0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f9b50990dad9645a6f9dc0e1eb90af0a6474c3b;p=thirdparty%2Fhttpx.git typo: Reading a response expose response text, not request text (#3359) --- diff --git a/docs/compatibility.md b/docs/compatibility.md index e820a67b..0d947664 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -143,7 +143,7 @@ Within a `stream()` block request data is made available with: * `.iter_text()` - Instead of `response.iter_content(decode_unicode=True)` * `.iter_lines()` - Corresponding to `response.iter_lines()` * `.iter_raw()` - Use this instead of `response.raw` -* `.read()` - Read the entire response body, making `request.text` and `response.content` available. +* `.read()` - Read the entire response body, making `response.text` and `response.content` available. ## Timeouts