Part of twisted.web2.stream View Source View In Hierarchy
Implements interfaces: twisted.web2.stream.ISendfileableStream
Method | __init__ | Create the stream from file f. If you specify start and length, use only that portion of the file. |
Method | read | Read some data. If sendfile == False, returns an object conforming to the buffer interface, or else a Deferred. |
Method | close | Prematurely close this stream. Should also cause further reads to return None. Additionally, .length should be set to 0. |
Inherited from SimpleStream:
Method | split | Split this stream into two, at byte position 'point'. |
Read some data. If sendfile == False, returns an object conforming to the buffer interface, or else a Deferred.
If sendfile == True, returns either the above, or a SendfileBuffer.