mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Clarify the docs for the 'strict' argument to httplib.HTTPConnection.
This commit is contained in:
parent
ee1a7da135
commit
031f3fb69a
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ The module provides the following classes:
|
||||||
server. It should be instantiated passing it a host and optional port
|
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
|
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
|
string if it has the form ``host:port``, else the default HTTP port (80) is
|
||||||
used. When True, the optional parameter *strict* causes ``BadStatusLine`` to
|
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
|
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
|
status line. If the optional *timeout* parameter is given, blocking
|
||||||
operations (like connection attempts) will timeout after that many seconds
|
operations (like connection attempts) will timeout after that many seconds
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue