Kaydet (Commit) 6ea17a88 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Issue #12039 - Update the http.server.rst with the requirement to call…

Issue #12039 - Update the http.server.rst with the requirement to call `end_headers` after calling `send_header`.
üst e9c84b65
...@@ -188,9 +188,10 @@ of which this module provides three different variants: ...@@ -188,9 +188,10 @@ of which this module provides three different variants:
.. method:: send_header(keyword, value) .. method:: send_header(keyword, value)
Adds the HTTP header to an internal buffer which will be written to the 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` output stream when either :meth:`end_headers` or :meth:`flush_headers` is
is invoked. *keyword* should specify the header keyword, with *value* invoked. *keyword* should specify the header keyword, with *value*
specifying its 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 .. versionchanged:: 3.2 Storing the headers in an internal buffer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment