Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b7698c

Browse files
committed
issue14427 - Document Request.get_header and Request.header_items
2 parents 150c365 + 8dc5004 commit 4b7698c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Doc/library/urllib.request.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,18 @@ request.
502502

503503
.. deprecated:: 3.3
504504

505+
.. method:: Request.get_header(header_name, default=None)
506+
507+
Return the value of the given header. If the header is not present, return
508+
the default value.
509+
510+
511+
.. method:: Request.header_items()
512+
513+
Return a list of tuples (header_name, header_value) of the Request headers.
514+
515+
516+
.. method:: Request.set_proxy(host, type)
505517

506518
.. method:: Request.get_origin_req_host()
507519

0 commit comments

Comments
 (0)