Trees | Indices | Help |
---|
|
twisted.internet.protocol.Factory --+ | twisted.internet.protocol.ClientFactory --+ | twisted.internet.protocol.BaseProtocol --+ | | | twisted.internet.protocol.Protocol --+ | | | twisted.protocols.basic._PauseableMixin --+ | | | twisted.protocols.basic.LineReceiver --+ | | | twisted.web.http.HTTPClient --+ | extern.log.log.Loggable --+ | StreamGetter
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).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
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.
|
Called when a connection has failed to connect. It may be useful to call connector.connect() - this will reconnect.
|
Called when a connection is made. This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
|
Called when the connection is shut down. Clear any circular references here, and any external references to this Protocol. The connection has been closed.
|
Called when the status-line is received.
|
Called every time a header is received.
|
Called when all headers have been received.
|
|
The response has been completely received. This callback may be invoked more than once per request.
|
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:05 2013 | http://epydoc.sourceforge.net |