[Python-checkins] CVS: python/dist/src/Doc/lib libhttplib.tex,1.26,1.27

Fred L. Drake fdrake@users.sourceforge.net
2001年11月08日 21:03:08 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv26905/lib
Modified Files:
	libhttplib.tex 
Log Message:
Cleaned up some markup stupidity and a usage problem reported by Detlef
Lannert. Added descriptions of HTTP_PORT and HTTPS_PORT.
Index: libhttplib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libhttplib.tex,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** libhttplib.tex	2001年10月20日 04:24:09	1.26
--- libhttplib.tex	2001年11月09日 05:03:05	1.27
***************
*** 38,53 ****
 \begin{enumerate}
 
! \item[1.] Make exactly one call to the \method{putrequest()} method.
 
! \item[2.] Make zero or more calls to the \method{putheader()} method.
 
! \item[3.] Call the \method{endheaders()} method (this can be omitted if
 step 4 makes no calls).
 
! \item[4.] Optional calls to the \method{send()} method.
 
! \item[5.] Call the \method{getreply()} method.
 
! \item[6.] Call the \method{getfile()} method and read the data off the
 file object that it returns.
 
--- 38,53 ----
 \begin{enumerate}
 
! \item Make exactly one call to the \method{putrequest()} method.
 
! \item Make zero or more calls to the \method{putheader()} method.
 
! \item Call the \method{endheaders()} method (this can be omitted if
 step 4 makes no calls).
 
! \item Optional calls to the \method{send()} method.
 
! \item Call the \method{getreply()} method.
 
! \item Call the \method{getfile()} method and read the data off the
 file object that it returns.
 
***************
*** 55,60 ****
 \end{classdesc}
 
! \subsection{HTTP Objects}
 
 \class{HTTP} instances have the following methods:
 
--- 55,69 ----
 \end{classdesc}
 
! \begin{datadesc}{HTTP_PORT}
! The default port for the HTTP protocol (always \code{80}).
! \end{datadesc}
! 
! \begin{datadesc}{HTTPS_PORT}
! The default port for the HTTPS protocol (always \code{443}).
! \end{datadesc}
! 
 
+ \subsection{HTTP Objects \label{http-objects}}
+ 
 \class{HTTP} instances have the following methods:
 
***************
*** 68,73 ****
 \begin{methoddesc}{connect}{host\optional{, port}}
 Connect to the server given by \var{host} and \var{port}. See the
! intro for the default port. This should be called directly only if
! the instance was instantiated without passing a host.
 \end{methoddesc}
 
--- 77,83 ----
 \begin{methoddesc}{connect}{host\optional{, port}}
 Connect to the server given by \var{host} and \var{port}. See the
! introduction to the \refmodule{httplib} module for information on the
! default ports. This should be called directly only if the instance
! was instantiated without passing a host.
 \end{methoddesc}
 

AltStyle によって変換されたページ (->オリジナル) /