Kamaelia Cookbook - How to use the webserver in Kamaelia
December 13, 2006 at 08:21 PM | categories: python, oldblog | View Comments
After a request on "how do you use Kamaelia's HTTP Server", I sat down and created a cookbook entry detailed how you use Kamaelia's webserver code. So without further ado: How to use Kamaelia's webserver !
After writing that entry, it struck me that it actually makes sense to extend the codebase to simplify the current API, but even so, being able to write a response handler like this:
def EchoHandler(request):
return Pipeline ( Cat(request), ExampleWrapper() )
is really rather sweet :-) (You can put whatever components you like in between this that you like for example, however wacky)