cpython: d59ec3aa442e (original) (raw)
Mercurial > cpython
changeset 70031:d59ec3aa442e
Issue #12039 - Update the http.server.rst with the requirement to call `end_headers` after calling `send_header`. [#12039]
Senthil Kumaran senthil@uthcode.com | |
---|---|
date | Wed, 11 May 2011 11:45:48 +0800 |
parents | 96235f1cfd7e |
children | 4651bf40af8d |
files | Doc/library/http.server.rst |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-)[+] [-] Doc/library/http.server.rst 7 |
line wrap: on
line diff
--- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -188,9 +188,10 @@ of which this module provides three diff .. 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`[](#l1.7)
is invoked. *keyword* should specify the header keyword, with *value*[](#l1.8)
specifying its value.[](#l1.9)
output stream when either :meth:`end_headers` or :meth:`flush_headers` is[](#l1.10)
invoked. *keyword* should specify the header keyword, with *value*[](#l1.11)
specifying its value. Note that, after the send_header calls are done,[](#l1.12)
:meth:`end_headers` MUST BE called in order to complete the operation.[](#l1.13)
.. versionchanged:: 3.2 Storing the headers in an internal buffer