diff options
| author | Michele Mazzucchi <m.mazzucchi@frontdam.com> | 2023-09-12 13:40:12 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-14 12:29:49 +0200 |
| commit | 866122690dbe233c054d06f6afbc2f3cc6aea2f2 (patch) | |
| tree | 0aee92b8586ab4bd5f34baccc10052a756ab1747 | |
| parent | 97e8a2afb127fad8c71d084954a6bc38661375dd (diff) | |
[4.2.x] Doc'd HttpResponse.cookies.
Backport of 5bfb3cbf49e2b9701e7c42989e14a72374adb6bd from main
| -rw-r--r-- | docs/ref/request-response.txt | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
