diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-12-17 17:35:56 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-12-17 17:35:56 (GMT) |
commit | 988dbd7bc2bb8a41cf91a12c8bff9a916651769f (patch) | |
tree | 897d68ce2dcd275487d04737635a7c92bee97bd6 /Doc/library/http.client.rst | |
parent | 7cb3051dc304a0cf8da73a647b259a4dc215ea39 (diff) | |
download | cpython-988dbd7bc2bb8a41cf91a12c8bff9a916651769f.zip cpython-988dbd7bc2bb8a41cf91a12c8bff9a916651769f.tar.gz cpython-988dbd7bc2bb8a41cf91a12c8bff9a916651769f.tar.bz2 |
Issue #10711: Remove HTTP 0.9 support from http.client. The `strict`
parameter to HTTPConnection and friends is deprecated.
Diffstat (limited to 'Doc/library/http.client.rst')
-rw-r--r-- | Doc/library/http.client.rst | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index 761be86..67d7271 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -23,16 +23,13 @@ HTTPS protocols. It is normally not used directly --- the module The module provides the following classes: -.. class:: HTTPConnection(host, port=None, strict=None[, timeout[, source_address]]) +.. class:: HTTPConnection(host, port=None[, strict[, timeout[, source_address]]]) An :class:`HTTPConnection` instance represents one transaction with an HTTP server. It should be instantiated passing it a host and optional port number. If no port number is passed, the port is extracted from the host string if it has the form ``host:port``, else the default HTTP port (80) is - used. When True, the optional parameter *strict* (which defaults to a false - value) causes ``BadStatusLine`` to - be raised if the status line can't be parsed as a valid HTTP/1.0 or 1.1 - status line. If the optional *timeout* parameter is given, blocking + used. If the optional *timeout* parameter is given, blocking operations (like connection attempts) will timeout after that many seconds (if it is not given, the global default timeout setting is used). The optional *source_address* parameter may be a typle of a (host, port) @@ -49,8 +46,12 @@ The module provides the following classes: .. versionchanged:: 3.2 *source_address* was added. + .. versionchanged:: 3.2 + The *strict* parameter is deprecated. HTTP 0.9-style "Simple Responses" + are not supported anymore. + -.. class:: HTTPSConnection(host, port=None, key_file=None, cert_file=None, strict=None[, timeout[, source_address]], *, context=None, check_hostname=None) +.. class:: HTTPSConnection(host, port=None, key_file=None, cert_file=None[, strict[, timeout[, source_address]]], *, context=None, check_hostname=None) A subclass of :class:`HTTPConnection` that uses SSL for communication with secure servers. Default port is ``443``. If *context* is specified, it @@ -80,12 +81,20 @@ The module provides the following classes: This class now supports HTTPS virtual hosts if possible (that is, if :data:`ssl.HAS_SNI` is true). + .. versionchanged:: 3.2 + The *strict* parameter is deprecated. HTTP 0.9-style "Simple Responses" + are not supported anymore. + -.. class:: HTTPResponse(sock, debuglevel=0, strict=0, method=None, url=None) +.. class:: HTTPResponse(sock, debuglevel=0[, strict], method=None, url=None) Class whose instances are returned upon successful connection. Not instantiated directly by user. + .. versionchanged:: 3.2 + The *strict* parameter is deprecated. HTTP 0.9-style "Simple Responses" + are not supported anymore. + The following exceptions are raised as appropriate: |