From 6f9b50990dad9645a6f9dc0e1eb90af0a6474c3b Mon Sep 17 00:00:00 2001 From: Colin Bounouar Date: Wed, 23 Oct 2024 21:06:45 +0200 Subject: [PATCH] typo: Reading a response expose response text, not request text (#3359) --- docs/compatibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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