Kamaelia docs : Kamaelia.Protocol.HTTP.HTTPRequestHandler.HTTPRequestHandler

Kamaelia.Protocol.HTTP.HTTPRequestHandler.HTTPRequestHandler

For examples and more explanations, see the module level docs.


class HTTPRequestHandler(Axon.Component.component)

HTTPRequestHandler() -> new HTTPRequestHandler component capable of fulfilling the requests received over a single connection after they have been parsed by HTTPParser

Inboxes

  • control : Signal component termination
  • _handlercontrol : Signals from the request handler
  • inbox : Raw HTTP requests
  • _handlerinbox : Output from the request handler

Outboxes

  • debug : Information to aid debugging
  • outbox : HTTP responses
  • signal : Signal connection to close
  • _handleroutbox : POST data etc. for the request handler
  • _handlersignal : Signals for the request handler

Methods defined here

_sendChunkChunked(self, resource)

Send some more of the resource's data, for a response that uses chunked transfer-encoding

_sendChunkExplicit(self, resource)

Send some more of the resource's data, having already sent a content-length header

_sendEndChunked(self)

Called when a chunk-encoded response ends

_sendEndClose(self)

Called when a connection: close terminated response ends

_sendEndExplicit(self)

Called when a response that had a content-length header ends

connectResourceHandler(self)

Link to the resource handler we've created so we can receive its output

disconnectResourceHandler(self)

Disconnect the now finished resource handler

resourceUTF8Encode(self, resource)

Encode a resource's unicode data as utf-8 octets

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: