Home | Trees | Index | Help |
|
---|
Package twisted :: Package web :: Module client :: Class HTTPClientFactory |
|
Factory
--+ |ClientFactory
--+ | HTTPClientFactory
HTTPDownloader
Method Summary | |
---|---|
__init__(self,
url,
method,
postdata,
headers,
agent,
timeout,
cookies,
followRedirect)
| |
__repr__(self)
| |
Create an instance of a subclass of Protocol. | |
clientConnectionFailed(self,
_,
reason)
| |
gotHeaders(self,
headers)
| |
gotStatus(self,
version,
status,
message)
| |
noPage(self,
reason)
| |
page(self,
page)
| |
setURL(self,
url)
| |
Inherited from ClientFactory | |
Called when an established connection is lost. | |
Called when a connection has been started. | |
Inherited from Factory | |
Make sure startFactory is called. | |
Make sure stopFactory is called. | |
This will be called before I begin listening on a Port or Connector. | |
This will be called before I stop listening on all Ports/Connectors. |
Instance Variable Summary | |
---|---|
Deferred | deferred : A Deferred that will fire when the content has been retrieved. |
str | message : The text message returned with the status. |
dict | response_headers : The headers that were specified in the response from the server. |
str | status : The status of the response. |
str | version : The version of the response. |
Class Variable Summary | |
---|---|
str |
host = ''
|
NoneType |
path = None |
NoneType |
port = None |
class |
protocol = twisted.web.client.HTTPPageGetter |
NoneType |
scheme = None |
NoneType |
url = None |
Inherited from Factory | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
str |
noisy = 'sure, why not'
|
int |
numPorts = 0 |
Method Details |
---|
buildProtocol(self, addr)Create an instance of a subclass of Protocol. The returned instance will handle input on an incoming server connection, and an attribute "factory" pointing to the creating factory. Override this method to alter how Protocol instances get created.
|
Instance Variable Details |
---|
deferredA Deferred that will fire when the content has been retrieved. Once this is fired, the ivars `status', `version', and `message' will be set.
|
messageThe text message returned with the status.
|
response_headersThe headers that were specified in the response from the server.
|
statusThe status of the response.
|
versionThe version of the response.
|
Class Variable Details |
---|
host
|
path
|
port
|
scheme
|
url
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:03 2004 | http://epydoc.sf.net |