[Python-checkins] r55503 - python/branches/release25-maint/Doc/lib/libhttplib.tex
neal.norwitz
python-checkins at python.org
Tue May 22 08:09:26 CEST 2007
Author: neal.norwitz
Date: Tue May 22 08:09:24 2007
New Revision: 55503
Modified:
python/branches/release25-maint/Doc/lib/libhttplib.tex
Log:
Document "new" params to HTTPConnection/HTTPSConnection
Modified: python/branches/release25-maint/Doc/lib/libhttplib.tex
==============================================================================
--- python/branches/release25-maint/Doc/lib/libhttplib.tex (original)
+++ python/branches/release25-maint/Doc/lib/libhttplib.tex Tue May 22 08:09:24 2007
@@ -26,12 +26,16 @@
The module provides the following classes:
-\begin{classdesc}{HTTPConnection}{host\optional{, port}}
+\begin{classdesc}{HTTPConnection}{host\optional{, port\optional{, strict}}}
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. For example, the following calls all create instances that connect to
+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.
+
+For example, the following calls all create instances that connect to
the server at the same host and port:
\begin{verbatim}
@@ -42,7 +46,8 @@
\versionadded{2.0}
\end{classdesc}
-\begin{classdesc}{HTTPSConnection}{host\optional{, port, key_file, cert_file}}
+\begin{classdesc}{HTTPSConnection}{host\optional{, port\optional{,
+ key_file\optional{, cert_file\optional{, strict}}}}}
A subclass of \class{HTTPConnection} that uses SSL for communication with
secure servers. Default port is \code{443}.
\var{key_file} is
More information about the Python-checkins
mailing list