Commit 71de040b authored by Georg Brandl's avatar Georg Brandl

bug [ 1202475 ] httplib docs mentioning HTTPConnection.getreply

parent 0929b7e5
...@@ -304,6 +304,8 @@ with the request. ...@@ -304,6 +304,8 @@ with the request.
\begin{methoddesc}{getresponse}{} \begin{methoddesc}{getresponse}{}
Should be called after a request is sent to get the response from the server. Should be called after a request is sent to get the response from the server.
Returns an \class{HTTPResponse} instance. 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} \end{methoddesc}
\begin{methoddesc}{set_debuglevel}{level} \begin{methoddesc}{set_debuglevel}{level}
...@@ -320,11 +322,9 @@ Connect to the server specified when the object was created. ...@@ -320,11 +322,9 @@ Connect to the server specified when the object was created.
Close the connection to the server. Close the connection to the server.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}{send}{data} As an alternative to using the \method{request()} method described above,
Send data to the server. This should be used directly only after the you can also send your request step by step, by using the four functions
\method{endheaders()} method has been called and before below.
\method{getreply()} has been called.
\end{methoddesc}
\begin{methoddesc}{putrequest}{request, selector\optional{, \begin{methoddesc}{putrequest}{request, selector\optional{,
skip\_host\optional{, skip_accept_encoding}}} skip\_host\optional{, skip_accept_encoding}}}
...@@ -349,6 +349,11 @@ each consisting of a tab and an argument. ...@@ -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. Send a blank line to the server, signalling the end of the headers.
\end{methoddesc} \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}} \subsection{HTTPResponse Objects \label{httpresponse-objects}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment