From: Senthil Kumaran Date: Sun, 2 Oct 2011 23:27:06 +0000 (+0800) Subject: Document message_body arg in HTTPConnection.endheaders X-Git-Tag: v3.2.3rc1~542 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d0de3fbaa6d3c6ba9c1c510a943df249bdd61e7;p=thirdparty%2FPython%2Fcpython.git Document message_body arg in HTTPConnection.endheaders --- diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index 3749ff2d8002..9ef795651ef1 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -472,9 +472,13 @@ also send your request step by step, by using the four functions below. an argument. -.. method:: HTTPConnection.endheaders() +.. method:: HTTPConnection.endheaders(message_body=None) - Send a blank line to the server, signalling the end of the headers. + Send a blank line to the server, signalling the end of the headers. The + optional message_body argument can be used to pass message body + associated with the request. The message body will be sent in + the same packet as the message headers if possible. The + message_body should be a string. .. method:: HTTPConnection.send(data)