We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7dbde8 commit bb7964dCopy full SHA for bb7964d
Doc/library/http.cookies.rst
@@ -30,6 +30,8 @@ in a cookie name (as :attr:`~Morsel.key`).
30
.. versionchanged:: 3.3
31
Allowed ':' as a valid cookie name character.
32
33
+.. versionchanged:: 3.15
34
+ Allowed '"' as a valid cookie value character.
35
36
.. note::
37
@@ -314,3 +316,9 @@ The following example demonstrates how to use the :mod:`http.cookies` module.
314
316
>>> print(C)
315
317
Set-Cookie: number=7
318
Set-Cookie: string=seven
319
+ >>> C = cookies.SimpleCookie()
320
+ >>> C.load('cookies=7; mixins="{"chips": "dark chocolate"}"; state="gooey"')
321
+ >>> print(C)
322
+ Set-Cookie: cookies=7
323
+ Set-Cookie: mixins="{"chips": "dark chocolate"}"
324
+ Set-Cookie: state="gooey"
0 commit comments