Package Pyblio :: Package External :: Module HTTP :: Class HTTPRetrieve
[hide private]
[frames] | no frames]

Class HTTPRetrieve

source code

  twisted.internet.protocol.Factory --+        
                                      |        
twisted.internet.protocol.ClientFactory --+    
                                          |    
       twisted.web.client.HTTPClientFactory --+
                                              |
                                             HTTPRetrieve

Cancellable HTTP client.

This HTTP getter keeps track of the running protocol instances, so that their transport can be closed in the middle of an operation.

Nested Classes [hide private]

Inherited from twisted.web.client.HTTPClientFactory: protocol

Instance Methods [hide private]
 
__init__(self, url, *args, **kargs) source code
 
buildProtocol(self, addr) source code
 
cancel(self) source code

Inherited from twisted.web.client.HTTPClientFactory: __repr__, clientConnectionFailed, gotHeaders, gotStatus, noPage, page, setURL

Inherited from twisted.web.client.HTTPClientFactory (private): _cancelTimeout

Inherited from twisted.internet.protocol.ClientFactory: clientConnectionLost, startedConnecting

Inherited from twisted.internet.protocol.Factory: __providedBy__, doStart, doStop, startFactory, stopFactory

Class Variables [hide private]

Inherited from twisted.web.client.HTTPClientFactory: host, path, port, scheme, url

Inherited from twisted.internet.protocol.Factory: __implemented__, __provides__, noisy, numPorts

Instance Variables [hide private]

Inherited from twisted.web.client.HTTPClientFactory: deferred, message, response_headers, status, version

Method Details [hide private]

__init__(self, url, *args, **kargs)
(Constructor)

source code 
Overrides: twisted.web.client.HTTPClientFactory.__init__

buildProtocol(self, addr)

source code 
Overrides: twisted.web.client.HTTPClientFactory.buildProtocol