Retrieves a stream using HTTP 1.0.
This class is at the same time a Factory and a Protocol, this can be
done because it's a client and in twisted client factories only create on
protocol.
The outcome, the stream info and stream data is forwarded to a
common.StreamConsumer instance given at creating time.
It supports range requests and some conditional request types
(ifModified and ifUnmodified).
|
__init__(self,
consumer,
url,
ifModifiedSince=None,
ifUnmodifiedSince=None,
start=None,
size=None,
timeout=0) |
source code
|
|
|
|
|
connect(self,
proxyAddress=None,
proxyPort=None,
timeout=0) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from twisted.internet.protocol.ClientFactory :
clientConnectionLost ,
startedConnecting
Inherited from twisted.internet.protocol.Factory :
__providedBy__ ,
doStart ,
doStop ,
startFactory ,
stopFactory
Inherited from twisted.web.http.HTTPClient :
endHeaders ,
extractHeader ,
lineReceived ,
rawDataReceived ,
sendHeader
Inherited from twisted.protocols.basic.LineReceiver :
clearLineBuffer ,
dataReceived ,
lineLengthExceeded ,
sendLine ,
setLineMode ,
setRawMode
Inherited from twisted.internet.protocol.BaseProtocol :
makeConnection
Inherited from twisted.protocols.basic._PauseableMixin :
pauseProducing ,
resumeProducing ,
stopProducing
Inherited from extern.log.log.Loggable :
debug ,
doLog ,
error ,
info ,
log ,
logFunction ,
logObjectName ,
warning ,
warningFailure ,
writeMarker
|