mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Minor update to HTTPHandler documentation to indicate that host:port can be used.
This commit is contained in:
parent
db390c1ad8
commit
00b5c932f3
1 changed files with 3 additions and 1 deletions
|
|
@ -1253,7 +1253,9 @@ Web server, using either \samp{GET} or \samp{POST} semantics.
|
||||||
\begin{classdesc}{HTTPHandler}{host, url\optional{, method}}
|
\begin{classdesc}{HTTPHandler}{host, url\optional{, method}}
|
||||||
Returns a new instance of the \class{HTTPHandler} class. The
|
Returns a new instance of the \class{HTTPHandler} class. The
|
||||||
instance is initialized with a host address, url and HTTP method.
|
instance is initialized with a host address, url and HTTP method.
|
||||||
If no \var{method} is specified, \samp{GET} is used.
|
The \var{host} can be of the form \code{host:port}, should you need to
|
||||||
|
use a specific port number. If no \var{method} is specified, \samp{GET}
|
||||||
|
is used.
|
||||||
\end{classdesc}
|
\end{classdesc}
|
||||||
|
|
||||||
\begin{methoddesc}{emit}{record}
|
\begin{methoddesc}{emit}{record}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue