class documentation
class DummyResponse:
Known subclasses: twisted.web.test.test_agent.AlreadyCompletedDummyResponse
Constructor: DummyResponse(headers, transportFactory)
Fake IResponse
for testing readBody that captures the protocol passed to deliverBody and uses it to make a connection with a transport.
Method | __init__ |
No summary |
Method | deliver |
Record the given protocol and use it to make a connection with DummyResponse.transport . |
Class Variable | code |
Undocumented |
Class Variable | phrase |
Undocumented |
Instance Variable | headers |
Undocumented |
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. |
transport =
¶
An instance created by calling transportFactory which is used by DummyResponse.protocol
to make a connection.