[Python-checkins] cpython (2.7): update 2.7 - 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/277688052c5a
changeset:   72590:277688052c5a
branch:      2.7
parent:      72580:854e31d80151
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Mon Oct 03 07:37:58 2011 +0800
summary:
  update 2.7 - Document message_body arg in HTTPConnection.endheaders

files:
  Doc/library/httplib.rst |  6 +++++-
  1 files changed, 5 insertions(+), 1 deletions(-)


diff --git a/Doc/library/httplib.rst b/Doc/library/httplib.rst
--- a/Doc/library/httplib.rst
+++ b/Doc/library/httplib.rst
@@ -492,9 +492,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.
+   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