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

Skip to content

Commit 6cbe427

Browse files
committed
Add info about HTTP/1.1 and Connection:Close header.
1 parent ff56250 commit 6cbe427

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/urllib.request.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ The :mod:`urllib.request` module defines the following functions:
2626
*data* should be a buffer in the standard
2727
:mimetype:`application/x-www-form-urlencoded` format. The
2828
:func:`urllib.parse.urlencode` function takes a mapping or sequence
29-
of 2-tuples and returns a string in this format.
29+
of 2-tuples and returns a string in this format. urllib.request module uses
30+
HTTP/1.1 and includes `Connection:close` header in its HTTP requests.
3031

3132
The optional *timeout* parameter specifies a timeout in seconds for
3233
blocking operations like the connection attempt (if not specified,

0 commit comments

Comments
 (0)