Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13a2863

Browse files
author
Skip Montanaro
committed
* add \versionadded{} strings as appropriate
* remove doc for defunct IllegalKeywordArgument exception * add note that HTTP class is for backward compatibility and refer reader to online docstrings for help
1 parent 7a565f0 commit 13a2863

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

Doc/lib/libhttplib.tex

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ \section{\module{httplib} ---
1212
module \refmodule{urllib}\refstmodindex{urllib} uses it to handle URLs
1313
that use HTTP and HTTPS. \note{HTTPS support is only
1414
available 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

1719
The 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}}
4548
A subclass of \class{HTTPConnection} that uses SSL for communication with
4649
secure 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

4959
The following exceptions are raised as appropriate:
5060

5161
\begin{excdesc}{HTTPException}
5262
The base class of the other exceptions in this module. It is a
5363
subclass of \exception{Exception}.
64+
\versionadded{2.0}
5465
\end{excdesc}
5566

5667
\begin{excdesc}{NotConnected}
5768
A subclass of \exception{HTTPException}.
69+
\versionadded{2.0}
5870
\end{excdesc}
5971

6072
\begin{excdesc}{InvalidURL}
6173
A subclass of \exception{HTTPException}, raised if a port is given and is
6274
either non-numeric or empty.
75+
\versionadded{2.3}
6376
\end{excdesc}
6477

6578
\begin{excdesc}{UnknownProtocol}
6679
A subclass of \exception{HTTPException}.
80+
\versionadded{2.0}
6781
\end{excdesc}
6882

6983
\begin{excdesc}{UnknownTransferEncoding}
7084
A 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}
7889
A subclass of \exception{HTTPException}.
90+
\versionadded{2.0}
7991
\end{excdesc}
8092

8193
\begin{excdesc}{IncompleteRead}
8294
A subclass of \exception{HTTPException}.
95+
\versionadded{2.0}
8396
\end{excdesc}
8497

8598
\begin{excdesc}{ImproperConnectionState}
8699
A subclass of \exception{HTTPException}.
100+
\versionadded{2.0}
87101
\end{excdesc}
88102

89103
\begin{excdesc}{CannotSendRequest}
90104
A subclass of \exception{ImproperConnectionState}.
105+
\versionadded{2.0}
91106
\end{excdesc}
92107

93108
\begin{excdesc}{CannotSendHeader}
94109
A subclass of \exception{ImproperConnectionState}.
110+
\versionadded{2.0}
95111
\end{excdesc}
96112

97113
\begin{excdesc}{ResponseNotReady}
98114
A subclass of \exception{ImproperConnectionState}.
115+
\versionadded{2.0}
99116
\end{excdesc}
100117

101118
\begin{excdesc}{BadStatusLine}
102119
A subclass of \exception{HTTPException}. Raised if a server responds with a
103120
HTTP status code that we don't understand.
121+
\versionadded{2.0}
104122
\end{excdesc}
105123

106124

0 commit comments

Comments
 (0)