t.w.s.IStream(Interface) : interface documentation

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

Known subclasses: twisted.web2.stream.IByteStream

Known implementations: twisted.web2.fileupload.MultipartMimeStream

A stream of arbitrary data.
Method read Read some data.
Method close Prematurely close. Should also cause further reads to return None.
def read(): (source)

Read some data.

Returns some object representing the data. 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.
def close(): (source)
Prematurely close. Should also cause further reads to return None.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:22:34.