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

Skip to content

Commit 5d0de3f

Browse files
committed
Document message_body arg in HTTPConnection.endheaders
1 parent 86aed0b commit 5d0de3f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/library/http.client.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,13 @@ also send your request step by step, by using the four functions below.
472472
an argument.
473473

474474

475-
.. method:: HTTPConnection.endheaders()
475+
.. method:: HTTPConnection.endheaders(message_body=None)
476476

477-
Send a blank line to the server, signalling the end of the headers.
477+
Send a blank line to the server, signalling the end of the headers. The
478+
optional message_body argument can be used to pass message body
479+
associated with the request. The message body will be sent in
480+
the same packet as the message headers if possible. The
481+
message_body should be a string.
478482

479483

480484
.. method:: HTTPConnection.send(data)

0 commit comments

Comments
 (0)