Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cc99528d
Commit
cc99528d
authored
May 11, 2011
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue12039 - update the documentation of send_response method in http.server.rst.
parent
6ea17a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
Doc/library/http.server.rst
Doc/library/http.server.rst
+11
-4
No files found.
Doc/library/http.server.rst
View file @
cc99528d
...
...
@@ -180,10 +180,17 @@ of which this module provides three different variants:
.. method:: send_response(code, message=None)
Adds a response header to the headers buffer and logs the accepted
request. The HTTP response line is sent, followed by *Server* and
*Date* headers. The values for these two headers are picked up from
the :meth:`version_string` and :meth:`date_time_string` methods,
respectively.
request. The HTTP response line is written to the internal buffer,
followed by *Server* and *Date* headers. The values for these two headers
are picked up from the :meth:`version_string` and
:meth:`date_time_string` methods, respectively. If the server does not
intend to send any other headers using the :meth:`send_header` method,
then send_response should be followed by a :meth:`end_headers` call.
..versionchanged:: 3.3
Writing of headers to internal buffer and need to call
:meth:`end_headers` explicitly.
.. method:: send_header(keyword, value)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment