changeset: 76608:6a9f100e138c branch: 3.2 parent: 76606:1a9d38966395 user: Senthil Kumaran date: Sun Apr 29 11:50:39 2012 +0800 files: Doc/library/urllib.request.rst description: issue14427 - Document Request.get_header and Request.header_items diff -r 1a9d38966395 -r 6a9f100e138c Doc/library/urllib.request.rst --- a/Doc/library/urllib.request.rst Sun Apr 29 10:39:49 2012 +0800 +++ b/Doc/library/urllib.request.rst Sun Apr 29 11:50:39 2012 +0800 @@ -447,6 +447,17 @@ 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

AltStyle によって変換されたページ (->オリジナル) /