mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
document the requestline and close_connection attributes, use real booleans, and add tests (closes #23410)
Patch by Martin Panter.
This commit is contained in:
parent
e7a2f64435
commit
70e2847347
3 changed files with 61 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue