summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-10-02 23:28:00 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-10-02 23:28:00 (GMT)
commit0069be19e5bbe8d485d4606bc1f548bf103b8a79 (patch)
treeb9054150b7095c4d8c14f271e833941a0986e7af
parent22cd02165679e615d5d4d0d797991f9c5fd439d4 (diff)
parent5d0de3fbaa6d3c6ba9c1c510a943df249bdd61e7 (diff)
downloadcpython-0069be19e5bbe8d485d4606bc1f548bf103b8a79.zip
cpython-0069be19e5bbe8d485d4606bc1f548bf103b8a79.tar.gz
cpython-0069be19e5bbe8d485d4606bc1f548bf103b8a79.tar.bz2
merge from 3.2 - 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 3749ff2..9ef7956 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)