Kamaelia docs : Kamaelia.Protocol.HTTP.Handlers.Minimal.Minimal

Kamaelia.Protocol.HTTP.Handlers.Minimal.Minimal

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


class Minimal(Axon.Component.component)

A simple HTTP request handler for HTTPServer which serves files within a given directory, guessing their MIME-type from their file extension.

Arguments: -- request - the request dictionary object that spawned this component -- homedirectory - the path to prepend to paths requested -- indexfilename - if a directory is requested, this file is checked for inside it, and sent if found

Inboxes

  • control : UNUSED
  • _filecontrol : Signals from file reader
  • _fileread : File data
  • inbox : UNUSED

Outboxes

  • _fileprompt : Get the file reader to do some reading
  • outbox : Response dictionaries
  • signal : UNUSED
  • _filesignal : Shutdown the file reader

Methods defined here

main(self)

Produce the appropriate response then terminate.

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: