t.w.i.IChanRequestCallbacks(Interface) : interface documentation

Part of twisted.web2.iweb View Source View In Hierarchy

The bits that are required of a Request for interfacing with a IChanRequest object
Method __init__ No summary
Method process Process the request. Called as soon as it's possibly reasonable to return a response. handleContentComplete may or may not have been called already.
Method handleContentChunk Called when a piece of incoming data has been received.
Method handleContentComplete Called when the incoming data stream is finished.
Method connectionLost Called if the connection was lost.
def __init__(chanRequest, command, path, version, contentLength, inHeaders): (source)
Create a new Request object.
ParameterschanRequestthe IChanRequest object creating this request
commandthe HTTP command e.g. GET
paththe HTTP path e.g. /foo/bar.html
versionthe parsed HTTP version e.g. (1,1)
contentLengthhow much data to expect, or None if unknown
inHeadersthe request headers
def process(): (source)
Process the request. Called as soon as it's possibly reasonable to return a response. handleContentComplete may or may not have been called already.
def handleContentChunk(data): (source)
Called when a piece of incoming data has been received.
def handleContentComplete(): (source)
Called when the incoming data stream is finished.
def connectionLost(reason): (source)
Called if the connection was lost.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.