diff options
author | Georg Brandl <georg@python.org> | 2007-03-26 20:28:28 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-03-26 20:28:28 +0000 |
commit | f03facfe901d63df4ba83dab0677eb1379b7cb2c (patch) | |
tree | 528c9ea62bd29658edd6b3fbc4c7c64f71be8648 /Doc/lib/libhttplib.tex | |
parent | 51b7abc5199cb87d9e17fbbb276a6695888d12f1 (diff) | |
download | cpython-git-f03facfe901d63df4ba83dab0677eb1379b7cb2c.tar.gz |
Some nits.
Diffstat (limited to 'Doc/lib/libhttplib.tex')
-rw-r--r-- | Doc/lib/libhttplib.tex | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex index 67371a4bb7..328ae9d5dd 100644 --- a/Doc/lib/libhttplib.tex +++ b/Doc/lib/libhttplib.tex @@ -32,12 +32,11 @@ 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 \code{\var{host}:\var{port}}, else the default HTTP port (80) is -used. -When True the optional parameter \var{strict} +used. When True, the optional parameter \var{strict} causes \code{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 \var{timeout} parameter is given, connection attempts will timeout after that many -seconds (if no timeout is passed, or is passed as None, the global default +seconds (if it is not given or \code{None}, the global default timeout setting is used). For example, the following calls all create instances that connect to |