cpython: a912ca4f507b (original) (raw)

--- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -97,7 +97,6 @@ of which this module provides three diff :mod:http.client is used to parse the headers and it requires that the HTTP request provide a valid :rfc:2822 style header. - .. attribute:: rfile Contains an input stream, positioned at the start of the optional input @@ -109,7 +108,7 @@ of which this module provides three diff client. Proper adherence to the HTTP protocol must be used when writing to this stream.

@@ -125,13 +124,10 @@ of which this module provides three diff .. attribute:: error_message_format

.. attribute:: error_content_type @@ -154,11 +150,11 @@ of which this module provides three diff .. attribute:: responses

A :class:BaseHTTPRequestHandler instance has the following methods: @@ -191,9 +187,9 @@ of which this module provides three diff specifies the HTTP error code, with message as an optional, short, human readable description of the error. The explain argument can be used to provide more detailed information about the error; it will be formatted

@@ -201,7 +197,6 @@ of which this module provides three diff The error response includes a Content-Length header. Added the explain argument. - .. method:: send_response(code, message=None) Adds a response header to the headers buffer and logs the accepted @@ -217,7 +212,6 @@ of which this module provides three diff Headers are stored to an internal buffer and :meth:end_headers needs to be called explicitly. - .. method:: send_header(keyword, value) Adds the HTTP header to an internal buffer which will be written to the @@ -229,7 +223,6 @@ of which this module provides three diff .. versionchanged:: 3.2 Headers are stored in an internal buffer. - .. method:: send_response_only(code, message=None) Sends the response header only, used for the purposes when ``100 @@ -279,7 +272,7 @@ of which this module provides three diff .. method:: version_string() Returns the server software's version string. This is a combination of the

.. method:: date_time_string(timestamp=None)