summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-02-18 02:11:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-02-18 02:11:10 (GMT)
commit70e2847347f9b4fd579e23cf2e2f329aab1faa5d (patch)
treecda69b03b9896741e75fd308075da8286a51a17a /Doc
parente7a2f64435d795712a766a088541b43dc7cee5b7 (diff)
downloadcpython-70e2847347f9b4fd579e23cf2e2f329aab1faa5d.zip
cpython-70e2847347f9b4fd579e23cf2e2f329aab1faa5d.tar.gz
cpython-70e2847347f9b4fd579e23cf2e2f329aab1faa5d.tar.bz2
document the requestline and close_connection attributes, use real booleans, and add tests (closes #23410)
Patch by Martin Panter.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/http.server.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
index 0d8e7fe..a750155 100644
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -64,6 +64,18 @@ of which this module provides three different variants:
Contains the server instance.
+ .. attribute:: close_connection
+
+ Boolean that should be set before :meth:`handle_one_request` returns,
+ indicating if another request may be expected, or if the connection should
+ be shut down.
+
+ .. attribute:: requestline
+
+ Contains the string representation of the HTTP request line. The
+ terminating CRLF is stripped. This attribute should be set by
+ :meth:`handle_one_request`. If no valid request line was processed, it
+ should be set to the empty string.
.. attribute:: command