Class t.w.c.h.HTTPChannelRequest(HTTPParser):

Part of twisted.web2.channel.http View Source View In Hierarchy

This class handles the state and parsing for one HTTP request. It is responsible for all the low-level connection oriented behavior. Thus, it takes care of keep-alive, de-chunking, etc., and passes the non-connection headers on to the user-level Request object.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
358 Method __init__ Undocumented
373 Method gotInitialLine Undocumented
403 Method lineLengthExceeded Undocumented
407 Method createRequest Undocumented
411 Method processRequest Undocumented
414 Method handleContentChunk Undocumented
417 Method handleContentComplete Undocumented
426 Method writeIntermediateResponse Undocumented
430 Method writeHeaders Undocumented
469 Method write Undocumented
477 Method finish We are finished writing data.
492 Method abortConnection Abort the HTTP connection because of some kind of unrecoverable
514 Method getHostInfo Undocumented
521 Method getRemoteHost Undocumented
548 Method noLongerQueued Notify the object that it is no longer queued.
576 Method registerProducer Register a producer.
590 Method unregisterProducer Unregister the producer.
596 Method connectionLost connection was lost
433 Method _writeHeaders Undocumented
526 Method _abortWithError Handle low level protocol errors.
538 Method _cleanup Called when have finished responding and are no longer queued.

Inherited from HTTPParser:

Line # Kind Name Docs
89 Method lineReceived Undocumented
156 Method rawDataReceived Handle incoming content.
175 Method headerReceived Store this header away. Check for too much header data
188 Method allHeadersReceived Undocumented
196 Method allContentReceived Undocumented
202 Method splitConnectionHeaders Split off connection control headers from normal headers.
268 Method setConnectionParams Undocumented
326 Method abortParse Undocumented
334 Method pauseProducing Undocumented
338 Method resumeProducing Undocumented
342 Method stopProducing Undocumented
Line # Kind Name Docs
358 Method __init__ Undocumented
492 Method abortConnection Abort the HTTP connection because of some kind of unrecoverable
326 Method abortParse Undocumented
196 Method allContentReceived Undocumented
188 Method allHeadersReceived Undocumented
596 Method connectionLost connection was lost
407 Method createRequest Undocumented
477 Method finish We are finished writing data.
514 Method getHostInfo Undocumented
521 Method getRemoteHost Undocumented
373 Method gotInitialLine Undocumented
414 Method handleContentChunk Undocumented
417 Method handleContentComplete Undocumented
175 Method headerReceived Store this header away. Check for too much header data
403 Method lineLengthExceeded Undocumented
89 Method lineReceived Undocumented
548 Method noLongerQueued Notify the object that it is no longer queued.
334 Method pauseProducing Undocumented
411 Method processRequest Undocumented
156 Method rawDataReceived Handle incoming content.
576 Method registerProducer Register a producer.
338 Method resumeProducing Undocumented
268 Method setConnectionParams Undocumented
202 Method splitConnectionHeaders Split off connection control headers from normal headers.
342 Method stopProducing Undocumented
590 Method unregisterProducer Unregister the producer.
469 Method write Undocumented
430 Method writeHeaders Undocumented
426 Method writeIntermediateResponse Undocumented
526 Method _abortWithError Handle low level protocol errors.
538 Method _cleanup Called when have finished responding and are no longer queued.
433 Method _writeHeaders Undocumented
def __init__(self, channel, queued=0): (source)
Undocumented
def gotInitialLine(self, initialLine): (source)
Undocumented
def lineLengthExceeded(self, line, wasFirst=False): (source)
Undocumented
def createRequest(self): (source)
Undocumented
def processRequest(self): (source)
Undocumented
def handleContentChunk(self, data): (source)
Undocumented
def handleContentComplete(self): (source)
Undocumented
def writeIntermediateResponse(self, code, headers=None): (source)
Undocumented
def writeHeaders(self, code, headers): (source)
Undocumented
def _writeHeaders(self, code, headers, addConnectionHeaders): (source)
Undocumented
def write(self, data): (source)
Undocumented
def finish(self): (source)
We are finished writing data.
def abortConnection(self, closeWrite=True): (source)

Abort the HTTP connection because of some kind of unrecoverable error. If closeWrite=False, then only abort reading, but leave the writing side alone. This is mostly for internal use by the HTTP request parsing logic, so that it can call an error page generator.

Otherwise, completely shut down the connection.
def getHostInfo(self): (source)
Undocumented
def getRemoteHost(self): (source)
Undocumented
def _abortWithError(self, errorcode, text=''): (source)
Handle low level protocol errors.
def _cleanup(self): (source)
Called when have finished responding and are no longer queued.
def noLongerQueued(self): (source)

Notify the object that it is no longer queued.

We start writing whatever data we have to the transport, etc.

This method is not intended for users.
def registerProducer(self, producer, streaming): (source)
Register a producer.
def unregisterProducer(self): (source)
Unregister the producer.
def connectionLost(self, reason): (source)
connection was lost
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.