interface documentation
class _IDeprecatedHTTPChannelToRequestInterface(Interface): (source)
Known implementations: twisted.web.http.Request
The interface HTTPChannel expects of Request.
| Method | __eq__ |
Determines if two requests are the same object. |
| Method | __hash__ |
Generate a hash value for the request. |
| Method | __ne__ |
Determines if two requests are not the same object. |
| Method | connection |
The underlying connection has been lost. |
| Method | got |
Called when HTTPChannel has determined the length, if any, of the incoming request's body. |
| Method | handle |
Deliver a received chunk of body data to the request. Note this does not imply chunked transfer encoding. |
| Method | parse |
Parse the request's cookies out of received headers. |
| Method | request |
Called when the entire request, including its body, has been received. |
| Attribute | request |
A http_headers.Headers instance giving all received HTTP request headers. |
| Attribute | response |
A http_headers.Headers instance holding all HTTP response headers to be sent. |
Determines if two requests are the same object.
| Parameters | |
other:object | Another object whose identity will be compared to this instance's. |
| Returns | |
bool | True when the two are the same object and False when not. |
Determines if two requests are not the same object.
| Parameters | |
other:object | Another object whose identity will be compared to this instance's. |
| Returns | |
bool | True when the two are not the same object and False when they are. |
The underlying connection has been lost.
| Parameters | |
reason:twisted.python.failure.Failure | A failure instance indicating the reason why the connection was lost. |
Called when HTTPChannel has determined the length, if any, of the incoming request's body.
| Parameters | |
length:int if the request declares its body's length and None if it does not. | The length of the request's body. |
Deliver a received chunk of body data to the request. Note this does not imply chunked transfer encoding.
| Parameters | |
data:bytes | The received chunk. |
Called when the entire request, including its body, has been received.
| Parameters | |
command:bytes | The request's HTTP command. |
path:bytes | The request's path. Note: this is actually what RFC7320 calls the URI. |
version:bytes | The request's HTTP version. |