From 41464fc0b3b29ed75b8310e4224313955a059190 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Tue, 25 May 2021 14:05:44 +0200 Subject: [PATCH] Update docs on request cookies (#5725) * Update docs on request cookies So it matches what is actually used in the code See https://github.com/aio-libs/aiohttp/blob/63eb6ff550b2ba9f13cf5248980a4958e14a1af7/aiohttp/web_request.py#L565-L573 * Add docs reference for request.cookies type (cherry picked from commit 4f48e3f74549053dda7ea359c34e063660a7ead0) --- CHANGES/5725.doc | 2 ++ docs/web_reference.rst | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 CHANGES/5725.doc diff --git a/CHANGES/5725.doc b/CHANGES/5725.doc new file mode 100644 index 00000000000..1b50453f0b7 --- /dev/null +++ b/CHANGES/5725.doc @@ -0,0 +1,2 @@ +Fixed docs on request cookies type, so it matches what is actually used in the code (a +read-only dictionary-like object). diff --git a/docs/web_reference.rst b/docs/web_reference.rst index bd50382eca1..d969977add7 100644 --- a/docs/web_reference.rst +++ b/docs/web_reference.rst @@ -227,9 +227,9 @@ and :ref:`aiohttp-web-signals` handlers. .. attribute:: cookies - A multidict of all request's cookies. + A read-only dictionary-like object containing the request's cookies. - Read-only :class:`~multidict.MultiDictProxy` lazy property. + Read-only :class:`~types.MappingProxyType` property. .. attribute:: content