Protocol that collects data sent to it.

This is a helper for IResponse.deliverBody, which collects the body and fires a deferred with it.

Instance Variable deferred See __init__.
Instance Variable status See __init__.
Instance Variable message See __init__.
Instance Variable dataBuffer list of byte-strings received (type: list of bytes)
Method __init__
Method dataReceived Accumulate some more bytes from the response.
Method connectionLost Deliver the accumulated response bytes to the waiting Deferred, if the response body has been completely received without error.

Inherited from BaseProtocol (via Protocol):

Method makeConnection Make a connection to a transport and a server.
Method connectionMade Called when a connection is made.

Inherited from BaseProtocol (via Protocol):

Method makeConnection Make a connection to a transport and a server.
Method connectionMade Called when a connection is made.
deferred =
See __init__.
status =
See __init__.
message =
See __init__.
dataBuffer =
list of byte-strings received (type: list of bytes)
def __init__(self, status, message, deferred): (source)
ParametersstatusStatus of IResponse
messageMessage of IResponse (type: bytes)
deferreddeferred to fire when response is complete (type: Deferred firing with bytes)
def dataReceived(self, data): (source)

Accumulate some more bytes from the response.

def connectionLost(self, reason): (source)

Deliver the accumulated response bytes to the waiting Deferred, if the response body has been completely received without error.

API Documentation for Twisted, generated by pydoctor at 2016-04-11 10:39:53.