[Python-checkins] cpython (merge 3.2 -> default): merge from 3.2 - Document message_body arg in HTTPConnection.endheaders
senthil.kumaran
python-checkins at python.org
Mon Oct 3 01:38:23 CEST 2011
http://hg.python.org/cpython/rev/1ed413b52af3
changeset: 72589:1ed413b52af3
parent: 72587:d3194ef040df
parent: 72588:a3f2dba93743
user: Senthil Kumaran <senthil at uthcode.com>
date: Mon Oct 03 07:28:00 2011 +0800
summary:
merge from 3.2 - Document message_body arg in HTTPConnection.endheaders
files:
Doc/library/http.client.rst | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -472,9 +472,13 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list