mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Minor changes.
This commit is contained in:
parent
c825280ea5
commit
c0765c2381
1 changed files with 8 additions and 5 deletions
|
|
@ -2,14 +2,16 @@
|
||||||
HTTP protocol client}
|
HTTP protocol client}
|
||||||
|
|
||||||
\declaremodule{standard}{httplib}
|
\declaremodule{standard}{httplib}
|
||||||
\modulesynopsis{HTTP protocol client (requires sockets).}
|
\modulesynopsis{HTTP and HTTPS protocol client (requires sockets).}
|
||||||
|
|
||||||
\indexii{HTTP}{protocol}
|
\indexii{HTTP}{protocol}
|
||||||
|
|
||||||
This module defines a class which implements the client side of the
|
This module defines classes which implement the client side of the
|
||||||
HTTP protocol. It is normally not used directly --- the module
|
HTTP and HTTPS protocols. It is normally not used directly --- the
|
||||||
\refmodule{urllib}\refstmodindex{urllib} uses it to handle URLs that
|
module \refmodule{urllib}\refstmodindex{urllib} uses it to handle URLs
|
||||||
use HTTP.
|
that use HTTP and HTTPS. \strong{Note:} HTTPS support is only
|
||||||
|
available if the \refmodule{socket} module was compiled with SSL
|
||||||
|
support.
|
||||||
|
|
||||||
The module defines one class, \class{HTTP}:
|
The module defines one class, \class{HTTP}:
|
||||||
|
|
||||||
|
|
@ -111,6 +113,7 @@ read, using the \method{read()}, \method{readline()} or
|
||||||
\method{readlines()} methods.
|
\method{readlines()} methods.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
||||||
\subsection{Examples \label{httplib-examples}}
|
\subsection{Examples \label{httplib-examples}}
|
||||||
|
|
||||||
Here is an example session that uses the \samp{GET} method:
|
Here is an example session that uses the \samp{GET} method:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue