summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-10-03 07:27:06 +0800
committerSenthil Kumaran <senthil@uthcode.com>2011-10-03 07:27:06 +0800
commit8bc2c96fcebc69073cfbe0f3ac20153ff1ccc6a7 (patch)
tree6edcf46765a2f804db107733e2c4bb80a6afd42b
parenta080e92dc3f4f96e3efe1028ef7f0a2d0b9e900f (diff)
downloadcpython-8bc2c96fcebc69073cfbe0f3ac20153ff1ccc6a7.tar.gz
Document message_body arg in HTTPConnection.endheaders
-rw-r--r--Doc/library/http.client.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index 3749ff2d80..9ef795651e 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)