Class e.p.h.e.c.HTTPChannelRequest(HTTPParser):

Part of elisa.plugins.http_client.extern.channel_http 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.
Line # Kind Name Docs
361 Method __init__ Undocumented
376 Method gotInitialLine Undocumented
407 Method lineLengthExceeded Undocumented
411 Method createRequest Undocumented
415 Method processRequest Undocumented
418 Method handleContentChunk Undocumented
421 Method handleContentComplete Undocumented
430 Method writeIntermediateResponse Undocumented
434 Method writeHeaders Undocumented
473 Method write Undocumented
481 Method finish We are finished writing data.
496 Method abortConnection Abort the HTTP connection because of some kind of unrecoverable
518 Method getHostInfo Undocumented
525 Method getRemoteHost Undocumented
552 Method noLongerQueued Notify the object that it is no longer queued.
580 Method registerProducer Register a producer.
594 Method unregisterProducer Unregister the producer.
600 Method connectionLost connection was lost
437 Method _writeHeaders Undocumented
530 Method _abortWithError Handle low level protocol errors.
542 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.
179 Method headerReceived Store this header away. Check for too much header data
191 Method allHeadersReceived Undocumented
199 Method allContentReceived Undocumented
205 Method splitConnectionHeaders Split off connection control headers from normal headers.
271 Method setConnectionParams Undocumented
329 Method abortParse Undocumented
337 Method pauseProducing Undocumented
341 Method resumeProducing Undocumented
345 Method stopProducing Undocumented
def __init__(self, channel, queued=0):
Undocumented
def gotInitialLine(self, initialLine):
Undocumented
def lineLengthExceeded(self, line, wasFirst=False):
Undocumented
def createRequest(self):
Undocumented
def processRequest(self):
Undocumented
def handleContentChunk(self, data):
Undocumented
def handleContentComplete(self):
Undocumented
def writeIntermediateResponse(self, code, headers=None):
Undocumented
def writeHeaders(self, code, headers):
Undocumented
def _writeHeaders(self, code, headers, addConnectionHeaders):
Undocumented
def write(self, data):
Undocumented
def finish(self):
We are finished writing data.
def abortConnection(self, closeWrite=True):
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):
Undocumented
def getRemoteHost(self):
Undocumented
def _abortWithError(self, errorcode, text=''):
Handle low level protocol errors.
def _cleanup(self):
Called when have finished responding and are no longer queued.
def noLongerQueued(self):
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):
Register a producer.
def unregisterProducer(self):
Unregister the producer.
def connectionLost(self, reason):
connection was lost
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.