twisted.web.http._IDeprecatedHTTPChannelToRequestInterface(Interface) interface documentationtwisted.web.http
(View In Hierarchy)
Known implementations: twisted.web.http.Request
The interface HTTPChannel 
expects of Request.
| Attribute | requestHeaders | A http_headers.Headersinstance giving all received HTTP request headers. | 
| Attribute | responseHeaders | A http_headers.Headersinstance holding all HTTP response headers to be sent. | 
| Method | connectionLost | The underlying connection has been lost. | 
| Method | gotLength | Called when HTTPChannelhas 
determined the length, if any, of the incoming request's body. | 
| Method | handleContentChunk | Deliver a received chunk of body data to the request. Note this does not imply chunked transfer encoding. | 
| Method | parseCookies | Parse the request's cookies out of received headers. | 
| Method | requestReceived | Called when the entire request, including its body, has been received. | 
| Method | __eq__ | Determines if two requests are the same object. | 
| Method | __ne__ | Determines if two requests are not the same object. | 
| Method | __hash__ | Generate a hash value for the request. | 
The underlying connection has been lost.
| Parameters | reason | A failure instance indicating the reason why the connection was lost. (type: twisted.python.failure.Failure) | 
Called when HTTPChannel has 
determined the length, if any, of the incoming request's body.
| Parameters | length | The length of the request's body. (type: intif the request declares its body's length andNoneif it does not.) | 
Deliver a received chunk of body data to the request. Note this does not imply chunked transfer encoding.
| Parameters | data | The received chunk. (type: bytes) |