summaryrefslogtreecommitdiffstats
path: root/Doc/library/wsgiref.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-07-02 05:37:22 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-07-02 05:37:22 (GMT)
commit3e887222aa758ac5a3fb61c8e77e909372462d00 (patch)
treef9f849ce560197cb1de6bffb09be692c3cae0e1f /Doc/library/wsgiref.rst
parent09db75fcd64ea5056622ae744d31f494e719cd19 (diff)
downloadcpython-3e887222aa758ac5a3fb61c8e77e909372462d00.zip
cpython-3e887222aa758ac5a3fb61c8e77e909372462d00.tar.gz
cpython-3e887222aa758ac5a3fb61c8e77e909372462d00.tar.bz2
Issue #5800: headers parameter of wsgiref.headers.Headers is now optional.
Patch by Pablo Torres Navarrete and SilentGhost.
Diffstat (limited to 'Doc/library/wsgiref.rst')
-rw-r--r--Doc/library/wsgiref.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/library/wsgiref.rst b/Doc/library/wsgiref.rst
index 1cef2e9..2238140 100644
--- a/Doc/library/wsgiref.rst
+++ b/Doc/library/wsgiref.rst
@@ -184,10 +184,11 @@ This module provides a single class, :class:`Headers`, for convenient
manipulation of WSGI response headers using a mapping-like interface.
-.. class:: Headers(headers)
+.. class:: Headers([headers])
Create a mapping-like object wrapping *headers*, which must be a list of header
- name/value tuples as described in :pep:`3333`.
+ name/value tuples as described in :pep:`3333`. The default value of *headers* is
+ an empty list.
:class:`Headers` objects support typical mapping operations including
:meth:`__getitem__`, :meth:`get`, :meth:`__setitem__`, :meth:`setdefault`,
@@ -251,6 +252,10 @@ manipulation of WSGI response headers using a mapping-like interface.
Content-Disposition: attachment; filename="bud.gif"
+ .. versionchanged:: 3.5
+ *headers* parameter is optional.
+
+
:mod:`wsgiref.simple_server` -- a simple WSGI HTTP server
---------------------------------------------------------