]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
typo: Reading a response expose response text, not request text (#3359)
authorColin Bounouar <Colin-b@users.noreply.github.com>
Wed, 23 Oct 2024 19:06:45 +0000 (21:06 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Oct 2024 19:06:45 +0000 (20:06 +0100)
docs/compatibility.md

index e820a67b073dfed97dc2ab35ad7db702b91d8932..0d9476642bf4ec5773b44ca014fbf33590deb9c8 100644 (file)
@@ -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