mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
#17460: Remove the strict argument of HTTPConnection and removing the
DeprecationWarning being issued from 3.2 onwards.
This commit is contained in:
parent
aad1d87339
commit
052ddb01b3
3 changed files with 14 additions and 32 deletions
|
|
@ -27,7 +27,7 @@ HTTPS protocols. It is normally not used directly --- the module
|
|||
The module provides the following classes:
|
||||
|
||||
|
||||
.. class:: HTTPConnection(host, port=None[, strict][, timeout], \
|
||||
.. class:: HTTPConnection(host, port=None[, timeout], \
|
||||
source_address=None)
|
||||
|
||||
An :class:`HTTPConnection` instance represents one transaction with an HTTP
|
||||
|
|
@ -51,13 +51,9 @@ 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][, timeout], \
|
||||
cert_file=None[, timeout], \
|
||||
source_address=None, *, context=None, \
|
||||
check_hostname=None)
|
||||
|
||||
|
|
@ -89,20 +85,12 @@ 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], method=None, url=None)
|
||||
.. class:: HTTPResponse(sock, debuglevel=0, 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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue