diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-10-03 07:37:58 +0800 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-10-03 07:37:58 +0800 |
commit | 83cc512a01d33d5e6fcc3be2ce62a9a644dd3b50 (patch) | |
tree | 96cfa23c6fb7748679462fa393fb93a246e0aa8e | |
parent | f17e405eb7bd1a0f2a70423a63620a52c7073565 (diff) | |
download | cpython-git-83cc512a01d33d5e6fcc3be2ce62a9a644dd3b50.tar.gz |
update 2.7 - Document message_body arg in HTTPConnection.endheaders
-rw-r--r-- | Doc/library/httplib.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/httplib.rst b/Doc/library/httplib.rst index e1e3b2a83f..68a014960b 100644 --- a/Doc/library/httplib.rst +++ b/Doc/library/httplib.rst @@ -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) |