From: Senthil Kumaran Date: Wed, 16 Apr 2014 17:56:19 +0000 (-0400) Subject: Address issue 18229 - Explain http.server.BaseHTTPRequestHandler's .headers attribute... X-Git-Tag: v3.4.1rc1~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cad2bf20c3c790cd3535742a46d5b116e07b7f43;p=python Address issue 18229 - Explain http.server.BaseHTTPRequestHandler's .headers attribute further. Initial patch by Caelyn McAulay. --- diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index dd19fb4bfb..0d8e7fe6c7 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -81,7 +81,10 @@ of which this module provides three different variants: Holds an instance of the class specified by the :attr:`MessageClass` class variable. This instance parses and manages the headers in the HTTP - request. + request. The :func:`~http.client.parse_headers` function from + :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