Re: [Libevent-users] evhttp supporting virtual hosts

2007-11-22 Thread Nick Mathewson
On Thu, Nov 22, 2007 at 08:39:47AM +0100, [EMAIL PROTECTED] wrote: For my python binding to evhttp (temporarily called fapws2 http://www.opensource4you.com/cgi-bin/gitweb.cgi?p=fapws2;a=summary), I would like to implement the concept of virtual host. Is there anyone having expertise with

Re: [Libevent-users] evhttp supporting virtual hosts

2007-11-22 Thread william
On Thu, Nov 22, 2007 at 08:39:47AM +0100, [EMAIL PROTECTED] wrote: For my python binding to evhttp (temporarily called fapws2 http://www.opensource4you.com/cgi-bin/gitweb.cgi?p=fapws2;a=summary), I would like to implement the concept of virtual host. Is there anyone having expertise with

Re: [Libevent-users] evhttp supporting virtual hosts

2007-11-22 Thread william
Hi William, you can just register a generic callback for all HTTP requests and then provide the switching logic in your Python module. The HTTP layer is not really meant to provide a fully configurable system akin to Apache. Let me know if that works for you. Thanks for your answer.

[Libevent-users] evhttp supporting virtual hosts

2007-11-21 Thread william
For my python binding to evhttp (temporarily called fapws2 http://www.opensource4you.com/cgi-bin/gitweb.cgi?p=fapws2;a=summary), I would like to implement the concept of virtual host. Is there anyone having expertise with that within libevent ? I'm thinking to add it within the http structure.