[Python-checkins] cpython (merge 3.2 -> default): issue14427 - Document Request.get_header and Request.header_items

senthil.kumaran python-checkins at python.org
Sun Apr 29 05:53:22 CEST 2012


http://hg.python.org/cpython/rev/261de1701343
changeset:   76609:261de1701343
parent:      76607:6c227c1a80dd
parent:      76608:6a9f100e138c
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Sun Apr 29 11:51:56 2012 +0800
summary:
  issue14427 - Document Request.get_header and Request.header_items

files:
  Doc/library/urllib.request.rst |  12 ++++++++++++
  1 files changed, 12 insertions(+), 0 deletions(-)


diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -502,6 +502,18 @@
 
    .. deprecated:: 3.3
 
+.. method:: Request.get_header(header_name, default=None)
+
+   Return the value of the given header. If the header is not present, return
+   the default value.
+
+
+.. method:: Request.header_items()
+
+   Return a list of tuples (header_name, header_value) of the Request headers.
+
+
+.. method:: Request.set_proxy(host, type)
 
 .. method:: Request.get_origin_req_host()
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list