t.w.h.Request(object) : class documentation

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 VariablesmethodThe HTTP method that was used.
uriThe full URI that was requested (includes arguments).
headersAll received headers
clientprotoclient HTTP version
streamincoming 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
def __init__(self, chanRequest, command, path, version, contentLength, headers): (source)
ParameterschanRequestthe channel request we're associated with.
def checkExpect(self): (source)
Ensure there are no expectations that cannot be met. Checks Expect header against self.known_expects.
def process(self): (source)

Called by channel to let you process the request.

Can be overridden by a subclass to do something useful.
def handleContentChunk(self, data): (source)
Callback from channel when a piece of data has been received. Puts the data in .stream
def handleContentComplete(self): (source)
Callback from channel when all data has been received.
def connectionLost(self, reason): (source)
connection was lost
def __repr__(self): (source)
Undocumented
def _sendContinue(self): (source)
Undocumented
def _finished(self, x): (source)
We are finished writing data.
def _error(self, reason): (source)
Undocumented
def writeResponse(self, response): (source)
Write a response.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.