twisted.web.test.test_agent.StubHTTPProtocol(Protocol) class documentationtwisted.web.test.test_agent
(View In Hierarchy)
A protocol like HTTP11ClientProtocol
but which does not actually know HTTP/1.1 and only collects requests in a 
list.
| Instance Variable | requests | A listof two-tuples.  Each time a request is made, a tuple 
consisting of the request and theDeferredreturned from the request method is appended to this list. | 
| Method | __init__ | Undocumented | 
| Method | request | Capture the given request for later inspection. | 
Inherited from Protocol:
| Method | logPrefix | Return a prefix matching the class name, to identify log messages related to this protocol instance. | 
| Method | dataReceived | Called whenever data is received. | 
| Method | connectionLost | Called when the connection is shut down. | 
Inherited from BaseProtocol (via Protocol):
| Method | makeConnection | Make a connection to a transport and a server. | 
| Method | connectionMade | Called when a connection is made. | 
list of two-tuples.  Each time a request is made, a tuple 
consisting of the request and the Deferred 
returned from the request method is appended to this list.
  Capture the given request for later inspection.
| Returns | A Deferredwhich this code will never fire. | |