class documentation
class _ReadBodyProtocol(protocol.Protocol): (source)
Constructor: _ReadBodyProtocol(status, message, deferred)
Protocol that collects data sent to it.
This is a helper for IResponse.deliverBody
, which collects the body and fires a deferred with it.
Method | __init__ |
No summary |
Method | connection |
Deliver the accumulated response bytes to the waiting Deferred , if the response body has been completely received without error. |
Method | data |
Accumulate some more bytes from the response. |
Instance Variable | data |
list of byte-strings received |
Instance Variable | deferred |
See __init__ . |
Instance Variable | message |
See __init__ . |
Instance Variable | status |
See __init__ . |
Inherited from Protocol
:
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via Protocol
):
Method | connection |
Called when a connection is made. |
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Deliver the accumulated response bytes to the waiting Deferred
, if the response body has been completely received without error.