diff options
author | Georg Brandl <georg@python.org> | 2005-06-25 19:15:48 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-06-25 19:15:48 (GMT) |
commit | 71de040b82362c4604d72fba15ab15f02b3d75b6 (patch) | |
tree | 9db6cad6346f77521c27faba51598b269d8818fa | |
parent | 0929b7e5f7c3183b4b468d74e27db2adafe1336b (diff) | |
download | cpython-71de040b82362c4604d72fba15ab15f02b3d75b6.zip cpython-71de040b82362c4604d72fba15ab15f02b3d75b6.tar.gz cpython-71de040b82362c4604d72fba15ab15f02b3d75b6.tar.bz2 |
bug [ 1202475 ] httplib docs mentioning HTTPConnection.getreply
-rw-r--r-- | Doc/lib/libhttplib.tex | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Doc/lib/libhttplib.tex b/Doc/lib/libhttplib.tex index ed15e73..d08bc90 100644 --- a/Doc/lib/libhttplib.tex +++ b/Doc/lib/libhttplib.tex @@ -304,6 +304,8 @@ with the request. \begin{methoddesc}{getresponse}{} Should be called after a request is sent to get the response from the server. Returns an \class{HTTPResponse} instance. +\note{Note that you must have read the whole response before you can send a new +request to the server.} \end{methoddesc} \begin{methoddesc}{set_debuglevel}{level} @@ -320,11 +322,9 @@ Connect to the server specified when the object was created. Close the connection to the server. \end{methoddesc} -\begin{methoddesc}{send}{data} -Send data to the server. This should be used directly only after the -\method{endheaders()} method has been called and before -\method{getreply()} has been called. -\end{methoddesc} +As an alternative to using the \method{request()} method described above, +you can also send your request step by step, by using the four functions +below. \begin{methoddesc}{putrequest}{request, selector\optional{, skip\_host\optional{, skip_accept_encoding}}} @@ -349,6 +349,11 @@ each consisting of a tab and an argument. Send a blank line to the server, signalling the end of the headers. \end{methoddesc} +\begin{methoddesc}{send}{data} +Send data to the server. This should be used directly only after the +\method{endheaders()} method has been called and before +\method{getresponse()} is called. +\end{methoddesc} \subsection{HTTPResponse Objects \label{httpresponse-objects}} |