From 5bfb3cbf49e2b9701e7c42989e14a72374adb6bd Mon Sep 17 00:00:00 2001 From: Michele Mazzucchi Date: Tue, 12 Sep 2023 13:40:12 +0200 Subject: [PATCH] Doc'd HttpResponse.cookies. --- docs/ref/request-response.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index ee98b4b8b1..036f7004d2 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -800,10 +800,16 @@ Attributes A bytestring representing the content, encoded from a string if necessary. +.. attribute:: HttpResponse.cookies + + A :py:obj:`http.cookies.SimpleCookie` object holding the cookies included + in the response. + .. attribute:: HttpResponse.headers A case insensitive, dict-like object that provides an interface to all - HTTP headers on the response. See :ref:`setting-header-fields`. + HTTP headers on the response, except a ``Set-Cookie`` header. See + :ref:`setting-header-fields` and :attr:`HttpResponse.cookies`. .. attribute:: HttpResponse.charset