Known subclasses: twisted.web.test.test_agent.AlreadyCompletedDummyResponse

Fake IResponse for testing readBody that captures the protocol passed to deliverBody and uses it to make a connection with a transport.

Instance Variable protocol After deliverBody is called, the protocol it was called with.
Instance Variable transport An instance created by calling transportFactory which is used by DummyResponse.protocol to make a connection.
Method __init__
Method deliverBody Record the given protocol and use it to make a connection with DummyResponse.transport.
protocol =
After deliverBody is called, the protocol it was called with.
transport =
An instance created by calling transportFactory which is used by DummyResponse.protocol to make a connection.
def __init__(self, headers=None, transportFactory=AbortableStringTransport):
ParametersheadersThe headers for this response. If None, an empty Headers instance will be used. (type: Headers)
transportFactoryA callable used to construct the transport.
def deliverBody(self, protocol):

Record the given protocol and use it to make a connection with DummyResponse.transport.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.