class documentation

class twisted.web.http._NoPushProducer: (source)

Implements interfaces: twisted.internet.interfaces.IPushProducer

View In Hierarchy

A no-op version of interfaces.IPushProducer, used to abstract over the possibility that a HTTPChannel transport does not provide IPushProducer.

Method pauseProducing Pause producing data.
Method resumeProducing Resume producing data.
Method registerProducer Register to receive data from a producer.
Method unregisterProducer Stop consuming data from a producer, without disconnecting.
Method stopProducing IProducer.stopProducing
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 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 registerProducer(self, producer, streaming): (source)

Register to receive data from a producer.

ParametersproducerThe producer to register.
streamingWhether this is a streaming producer or not.
def unregisterProducer(self): (source)

Stop consuming data from a producer, without disconnecting.

def stopProducing(self): (source)

IProducer.stopProducing

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.