summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-04-29 03:50:39 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-04-29 03:50:39 (GMT)
commit8dc500476a3c176e10ae2f969235b5498c6b0393 (patch)
treea1ec75b6be73bc2bcc92cd6311a84e87675f918b /Doc
parent7e70a5c16918386ced63a36efb79257b75fa7500 (diff)
downloadcpython-8dc500476a3c176e10ae2f969235b5498c6b0393.zip
cpython-8dc500476a3c176e10ae2f969235b5498c6b0393.tar.gz
cpython-8dc500476a3c176e10ae2f969235b5498c6b0393.tar.bz2
issue14427 - Document Request.get_header and Request.header_items
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/urllib.request.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 58f33e3..db26b27 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -447,6 +447,17 @@ request.
Return the selector --- the part of the URL that is sent to the server.
+.. 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)
Prepare the request by connecting to a proxy server. The *host* and *type* will