diff options
-rw-r--r-- | 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 index 7aaadedc54..bce00b3a25 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() |