From 866122690dbe233c054d06f6afbc2f3cc6aea2f2 Mon Sep 17 00:00:00 2001 From: Michele Mazzucchi Date: Tue, 12 Sep 2023 13:40:12 +0200 Subject: [PATCH] [4.2.x] Doc'd HttpResponse.cookies. Backport of 5bfb3cbf49e2b9701e7c42989e14a72374adb6bd from main --- 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 c8e55ea370..6612befdc6 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -786,10 +786,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