summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-05-11 11:45:48 +0800
committerSenthil Kumaran <senthil@uthcode.com>2011-05-11 11:45:48 +0800
commit6bda850ed6ead39719ed9a0c89e8ea7da94c3926 (patch)
tree739da669a87153e879e9b7c347cfbc358bf614f9 /Doc
parent3d2f36642a7e55612ea1ce80010bad3e4bb3d91c (diff)
downloadcpython-6bda850ed6ead39719ed9a0c89e8ea7da94c3926.tar.gz
Issue #12039 - Update the http.server.rst with the requirement to call `end_headers` after calling `send_header`.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/http.server.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
index d9539f773a..e77e81d49d 100644
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -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