@@ -12,7 +12,9 @@ \section{\module{httplib} ---
1212module \refmodule {urllib}\refstmodindex {urllib} uses it to handle URLs
1313that use HTTP and HTTPS. \note {HTTPS support is only
1414available if the \refmodule {socket} module was compiled with SSL
15- support.}
15+ support.} \note {The \class {HTTP} class is retained only for backward
16+ compatibility with 1.5.2. It should not be used in new code. Refer to the
17+ online docstrings for usage.}
1618
1719The constants defined in this module are:
1820
@@ -39,68 +41,84 @@ \section{\module{httplib} ---
3941>>> h2 = httplib.HTTPConnection('www.cwi.nl:80')
4042>>> h3 = httplib.HTTPConnection('www.cwi.nl', 80)
4143\end {verbatim }
44+ \versionadded {2.0}
4245\end {classdesc }
4346
4447\begin {classdesc }{HTTPSConnection}{host\optional {, port}}
4548A subclass of \class {HTTPConnection} that uses SSL for communication with
4649secure servers. Default port is \code {443}.
50+ \versionadded {2.0}
51+ \end {classdesc }
52+
53+ \begin {classdesc }{HTTPResponse}{sock\optional {, debuglevel=0}\optional {, strict=0}}
54+ Class whose instances are returned upon successful connection. Not
55+ instantiated directly by user.
56+ \versionadded {2.0}
4757\end {classdesc }
4858
4959The following exceptions are raised as appropriate:
5060
5161\begin {excdesc }{HTTPException}
5262The base class of the other exceptions in this module. It is a
5363subclass of \exception {Exception}.
64+ \versionadded {2.0}
5465\end {excdesc }
5566
5667\begin {excdesc }{NotConnected}
5768A subclass of \exception {HTTPException}.
69+ \versionadded {2.0}
5870\end {excdesc }
5971
6072\begin {excdesc }{InvalidURL}
6173A subclass of \exception {HTTPException}, raised if a port is given and is
6274either non-numeric or empty.
75+ \versionadded {2.3}
6376\end {excdesc }
6477
6578\begin {excdesc }{UnknownProtocol}
6679A subclass of \exception {HTTPException}.
80+ \versionadded {2.0}
6781\end {excdesc }
6882
6983\begin {excdesc }{UnknownTransferEncoding}
7084A subclass of \exception {HTTPException}.
71- \end {excdesc }
72-
73- \begin {excdesc }{IllegalKeywordArgument}
74- A subclass of \exception {HTTPException}.
85+ \versionadded {2.0}
7586\end {excdesc }
7687
7788\begin {excdesc }{UnimplementedFileMode}
7889A subclass of \exception {HTTPException}.
90+ \versionadded {2.0}
7991\end {excdesc }
8092
8193\begin {excdesc }{IncompleteRead}
8294A subclass of \exception {HTTPException}.
95+ \versionadded {2.0}
8396\end {excdesc }
8497
8598\begin {excdesc }{ImproperConnectionState}
8699A subclass of \exception {HTTPException}.
100+ \versionadded {2.0}
87101\end {excdesc }
88102
89103\begin {excdesc }{CannotSendRequest}
90104A subclass of \exception {ImproperConnectionState}.
105+ \versionadded {2.0}
91106\end {excdesc }
92107
93108\begin {excdesc }{CannotSendHeader}
94109A subclass of \exception {ImproperConnectionState}.
110+ \versionadded {2.0}
95111\end {excdesc }
96112
97113\begin {excdesc }{ResponseNotReady}
98114A subclass of \exception {ImproperConnectionState}.
115+ \versionadded {2.0}
99116\end {excdesc }
100117
101118\begin {excdesc }{BadStatusLine}
102119A subclass of \exception {HTTPException}. Raised if a server responds with a
103120HTTP status code that we don't understand.
121+ \versionadded {2.0}
104122\end {excdesc }
105123
106124
0 commit comments