]> granicus.if.org Git - python/commitdiff
update 2.7 - Document message_body arg in HTTPConnection.endheaders
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 2 Oct 2011 23:37:58 +0000 (07:37 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sun, 2 Oct 2011 23:37:58 +0000 (07:37 +0800)
Doc/library/httplib.rst

index e1e3b2a83f896067b539609dc5520c7c9bf97336..68a014960b06f0682e5cb33bcc39d3625c6c8d17 100644 (file)
@@ -492,9 +492,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.
+   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)