]> granicus.if.org Git - python/commitdiff
Issue #12039 - Update the http.server.rst with the requirement to call `end_headers...
authorSenthil Kumaran <senthil@uthcode.com>
Wed, 11 May 2011 03:45:48 +0000 (11:45 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Wed, 11 May 2011 03:45:48 +0000 (11:45 +0800)
Doc/library/http.server.rst

index d9539f773ab853a794a88ea0ee430ac3080b59f3..e77e81d49d8df7bb565eb2508267e20c5c5a8762 100644 (file)
@@ -188,9 +188,10 @@ of which this module provides three different variants:
    .. 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