summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-06 19:37:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-06 19:37:35 (GMT)
commit35e661c7115256290e7abbf62f9d0bc602dfeac3 (patch)
treeceb5f778cb06d33b1152b46b9e07ea1b2c6fd462 /Doc
parentae55dc0da47e48f8dc8e986f8038a3a900a81f00 (diff)
downloadcpython-35e661c7115256290e7abbf62f9d0bc602dfeac3.zip
cpython-35e661c7115256290e7abbf62f9d0bc602dfeac3.tar.gz
cpython-35e661c7115256290e7abbf62f9d0bc602dfeac3.tar.bz2
Merged revisions 66262 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r66262 | benjamin.peterson | 2008-09-06 14:28:11 -0500 (Sat, 06 Sep 2008) | 4 lines #1638033: add support for httponly on Cookie.Morsel Reviewer: Benjamin ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/http.cookies.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/library/http.cookies.rst b/Doc/library/http.cookies.rst
index 9bffa40..0b66072 100644
--- a/Doc/library/http.cookies.rst
+++ b/Doc/library/http.cookies.rst
@@ -109,7 +109,7 @@ Morsel Objects
--------------
-.. class:: Morsel()
+.. class:: Morsel
Abstract a key/value pair, which has some :rfc:`2109` attributes.
@@ -123,9 +123,17 @@ Morsel Objects
* ``max-age``
* ``secure``
* ``version``
+ * ``httponly``
+
+ The attribute :attr:`httponly` specifies that the cookie is only transfered
+ in HTTP requests, and is not accessible through JavaScript. This is intended
+ to mitigate some forms of cross-site scripting.
The keys are case-insensitive.
+ .. versionadded:: 2.6
+ The :attr:`httponly` attribute was added.
+
.. attribute:: Morsel.value