Part of twisted.web2.http View Source View In Hierarchy
Known subclasses: twisted.web2.proxy.ProxyRequest, twisted.web2.proxy.ReverseProxyRequest, twisted.web2.server.Request
Implements interfaces: twisted.internet.interfaces.IConsumer, twisted.web2.iweb.IRequest
A HTTP request.
Subclasses should override the process() method to determine how the request will be processed.Instance Variables | method | The HTTP method that was used. |
uri | The full URI that was requested (includes arguments). | |
headers | All received headers | |
clientproto | client HTTP version | |
stream | incoming data stream. |
Method | __init__ | |
Method | checkExpect | Ensure there are no expectations that cannot be met. Checks Expect header against self.known_expects. |
Method | process | Called by channel to let you process the request. |
Method | handleContentChunk | Callback from channel when a piece of data has been received. Puts the data in .stream |
Method | handleContentComplete | Callback from channel when all data has been received. |
Method | connectionLost | connection was lost |
Method | __repr__ | Undocumented |
Method | writeResponse | Write a response. |
Method | _sendContinue | Undocumented |
Method | _finished | We are finished writing data. |
Method | _error | Undocumented |
Parameters | chanRequest | the channel request we're associated with. |
Called by channel to let you process the request.
Can be overridden by a subclass to do something useful.