changeset: 76609:261de1701343 parent: 76607:6c227c1a80dd parent: 76608:6a9f100e138c user: Senthil Kumaran date: Sun Apr 29 11:51:56 2012 +0800 files: Doc/library/urllib.request.rst description: issue14427 - Document Request.get_header and Request.header_items diff -r 6c227c1a80dd -r 261de1701343 Doc/library/urllib.request.rst --- a/Doc/library/urllib.request.rst Sun Apr 29 10:40:23 2012 +0800 +++ b/Doc/library/urllib.request.rst Sun Apr 29 11:51:56 2012 +0800 @@ -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()

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