Part of twisted.web2.http View Source View In Hierarchy
Method | __init__ | Undocumented |
Method | read | Read some data. |
Method | write | The producer will write data by calling this method. |
Method | finish | Called by producer when it is done. |
Inherited from ProducerStream:
Method | split | Split this stream into two, at byte position 'point'. |
Method | close | Called by reader of stream when it is done reading. |
Method | registerProducer | Register to receive data from a producer. |
Method | unregisterProducer | Stop consuming data from a producer, without disconnecting. |
Read some data.
Returns an object conforming to the buffer interface, or if there is no more data available, returns None. Can also return a Deferred resulting in one of the above.
Errors may be indicated by exception or by a Deferred of a Failure.Called by producer when it is done.
If the optional failure argument is passed a Failure instance, the stream will return it as errback on next Deferred.