t.s.u.FilePager(Pager) : class documentation

Part of twisted.spread.util View Source View In Hierarchy

Reads a file in chunks and sends the chunks as they come.
Method __init__ Create a pager with a Reference to a remote collector and an optional callable to invoke upon completion.
Method startProducing Undocumented
Method registerProducer Undocumented
Method unregisterProducer Undocumented
Method write Undocumented
Method sendNextPage Get the first chunk read and send it to collector.

Inherited from Pager:

Method stillPaging (internal) Method called by Broker.
Method nextPage Override this to return an object to be sent to my collector.
Method stopPaging Call this when you're done paging.
def __init__(self, collector, fd, *args, callback=None, **kw): (source)
Create a pager with a Reference to a remote collector and an optional callable to invoke upon completion.
def startProducing(self, fd): (source)
Undocumented
def registerProducer(self, producer, streaming): (source)
Undocumented
def unregisterProducer(self): (source)
Undocumented
def write(self, chunk): (source)
Undocumented
def sendNextPage(self): (source)
Get the first chunk read and send it to collector.
API Documentation for Twisted, generated by pydoctor at 2015-01-30 14:14:53.