Simple subclassing of http-server

Ken Seehof kens@s...
Tue, 23 Jan 2001 22:07:43 -0000


I need the same thing. Have you found anything out yet?

I seems to be one of those things where the simplest and most typical 
usage doesn't get documented. I guess I should complain since it is 
free, but I am frustrated. Is there a book out there that is 
recommended?

--- In medusa@egroups.com, thomas@c... wrote:
> I want to subclass medusas http-server-class so that I can write my 
> own request handler. The server is going to serve xml.
> 
> I've looked at the docs/tutorial but I cannot figure out where to 
put 
> my own handler, so that I can pick the requested url apart, use the 
> submitted data to find what data to send back to the client.
> 
> The simpleHTTPServer in the standard python distro has a simpler or 
> at least more understandable approach, so if anybody could show me 
> how to get something similar to that to work with I'd be glad.
> 
> The only thing I need is to have a place to insert my method and 
let 
> it return data based on the url the user typed in the browser. If I 
> can sublclass something and do it in my own subclass that would be 
> the best solution. It would be nice to leave the medusa-code alone.
> 
> Thanks