issue14427 - Document Request.get_header and Request.header_items

This commit is contained in:
Senthil Kumaran 2012-04-29 11:51:56 +08:00
commit 4b7698c468
1 changed files with 12 additions and 0 deletions

View File

@ -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()