[Python-checkins] cpython: Issue #12039 - Update the http.server.rst with the requirement to call

senthil.kumaran python-checkins at python.org
Wed May 11 05:46:01 CEST 2011


http://hg.python.org/cpython/rev/d59ec3aa442e
changeset:   70031:d59ec3aa442e
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Wed May 11 11:45:48 2011 +0800
summary:
  Issue #12039 - Update the http.server.rst with the requirement to call `end_headers` after calling `send_header`.

files:
  Doc/library/http.server.rst |  7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -188,9 +188,10 @@
    .. method:: send_header(keyword, value)
 
       Adds the HTTP header to an internal buffer which will be written to the
-      output stream when either :meth:`end_headers` or :meth:`flush_headers`
-      is invoked. *keyword* should specify the header keyword, with *value*
-      specifying its value.
+      output stream when either :meth:`end_headers` or :meth:`flush_headers` is
+      invoked. *keyword* should specify the header keyword, with *value*
+      specifying its value. Note that, after the send_header calls are done,
+      :meth:`end_headers` MUST BE called in order to complete the operation.
 
       .. versionchanged:: 3.2 Storing the headers in an internal buffer
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list