From 3637b75a6702cb3fb4962477c0f2ec38e366f3e2 Mon Sep 17 00:00:00 2001 From: Steven Almeroth Date: Tue, 12 Sep 2017 15:54:09 -0400 Subject: [PATCH] [Doc] Update Response.body type --- docs/topics/request-response.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst index 6ca37b7c9..92aae1ad0 100644 --- a/docs/topics/request-response.rst +++ b/docs/topics/request-response.rst @@ -525,11 +525,11 @@ Response objects (for single valued headers) or lists (for multi-valued headers). :type headers: dict - :param body: the response body. It must be str, not unicode, unless you're - using a encoding-aware :ref:`Response subclass - `, such as - :class:`TextResponse`. - :type body: str + :param body: the response body. To access the decoded text as str (unicode + in Python 2) you can use ``response.text`` from an encoding-aware + :ref:`Response subclass `, + such as :class:`TextResponse`. + :type body: bytes :param flags: is a list containing the initial values for the :attr:`Response.flags` attribute. If given, the list will be shallow