t.w.s.StreamProducer(object) : class documentation

Part of twisted.web2.stream View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.IPushProducer

A push producer which gets its data by reading a stream.
Method __init__ Undocumented
Method beginProducing Undocumented
Method resumeProducing Resume producing data.
Method pauseProducing Pause producing data.
Method stopProducing Undocumented
Method _doWrite Undocumented
def __init__(self, stream, enforceStr=True): (source)
Undocumented
def beginProducing(self, consumer): (source)
Undocumented
def resumeProducing(self): (source)

Resume producing data.

This tells a producer to re-add itself to the main loop and produce more data for its consumer.
def _doWrite(self, data): (source)
Undocumented
def pauseProducing(self): (source)

Pause producing data.

Tells a producer that it has produced too much data to process for the time being, and to stop until resumeProducing() is called.
def stopProducing(self, failure=ti_error.ConnectionLost()): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.