issue14427 - Document Request.get_header and Request.header_items

This commit is contained in:
Senthil Kumaran 2012-04-29 11:52:59 +08:00
parent f5aaf6f025
commit 429d311c2b
1 changed files with 11 additions and 0 deletions

View File

@ -380,6 +380,17 @@ so all must be overridden in subclasses.
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