Trees | Indices | Help |
|
---|
|
|
|||
response_class This class attempts to mimic HTTPResponse from httplib. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|
Connect to the host and port specified in __init__. Add ourselves to thhe asyncore polling group
|
Close the connection to the HTTP server. And remove ourselves from the asyncore polling group
|
Send `str' to the server. Actually, we just append str to the block of text to be sent to the server when getresponse is called. Note: the name was changed from httplib's 'HTTPConnection.send()' because it conflicts with asynchat |
Send a request to the server. `method' specifies an HTTP request method, e.g. 'GET'. `url' specifies the object being requested, e.g. '/index.html'. This function actually only starts accumulating the request: nothing gets sent to the server until getresponse() is called. |
Send a request header line to the server. For example: h.putheader('Accept', 'text/html') We don't actually send the header here, we stick it in a dictionary, to be sent when getresponse() is called. If you call putheader() with a duplicate key, it will wipe out the existing entry. |
Indicate that the last header line has been sent to the server. Actually, we just copy the header dictionary into the request stream to be sent when getresponse() is called. |
Get the response from the server. This actually starts the process of sending the request to the server. The response will be delivered in handle_response |
Notification from asyncore that we are connected
|
Notification from asyncore that the server has closed its end of the connection. If auto_open is TRUE, we will attempt to reopen the connection.
|
|
Overload asyncore's exception handling
|
asynchat calls this with data as it comes in
|
overload asynchat.found_terminator for _STATE_CHUNKED_START Assumes we got a hit on terminator ' ' |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jul 6 13:59:52 2014 | http://epydoc.sourceforge.net |