summaryrefslogtreecommitdiffstats
path: root/Doc/library/httplib.rst
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-10-05 15:52:49 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-10-05 15:52:49 (GMT)
commit41d663f0a531cfda057b7d8a7457e55ace0afa3c (patch)
tree7436fcef7562f71df4f98a259aeb9659c06f9ebe /Doc/library/httplib.rst
parent5a75355792a8667969b5d677f5e4208da8ad2dc4 (diff)
downloadcpython-41d663f0a531cfda057b7d8a7457e55ace0afa3c.zip
cpython-41d663f0a531cfda057b7d8a7457e55ace0afa3c.tar.gz
cpython-41d663f0a531cfda057b7d8a7457e55ace0afa3c.tar.bz2
Issue13073 - Address review comments and add versionchanged information in the docs.
Diffstat (limited to 'Doc/library/httplib.rst')
-rw-r--r--Doc/library/httplib.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/httplib.rst b/Doc/library/httplib.rst
index 68a0149..fc26f24 100644
--- a/Doc/library/httplib.rst
+++ b/Doc/library/httplib.rst
@@ -494,11 +494,14 @@ also send your request step by step, by using the four functions below.
.. 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.
+ Send a blank line to the server, signalling the end of the headers. The
+ optional *message_body* argument can be used to pass a message body
+ associated with the request. The message body will be sent in the same
+ packet as the message headers if it is string, otherwise it is sent in a
+ separate packet.
+
+ .. versionchanged:: 2.7
+ *message_body* was added.
.. method:: HTTPConnection.send(data)