summaryrefslogtreecommitdiffstats
path: root/Doc/library/urllib.request.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-04-29 03:51:56 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-04-29 03:51:56 (GMT)
commit4b7698c468642f7013a8fd21f46eb41aba8dde42 (patch)
tree8a61b3464050456245f8e0957a1e3eaca07a26e6 /Doc/library/urllib.request.rst
parent150c36543065821f8dc12af4eca200b6a414bb8c (diff)
parent8dc500476a3c176e10ae2f969235b5498c6b0393 (diff)
downloadcpython-4b7698c468642f7013a8fd21f46eb41aba8dde42.zip
cpython-4b7698c468642f7013a8fd21f46eb41aba8dde42.tar.gz
cpython-4b7698c468642f7013a8fd21f46eb41aba8dde42.tar.bz2
issue14427 - Document Request.get_header and Request.header_items
Diffstat (limited to 'Doc/library/urllib.request.rst')
-rw-r--r--Doc/library/urllib.request.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 7aaadedc..bce00b3 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -502,6 +502,18 @@ request.
.. 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()