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 exper

Re: [Libevent-users] evhttp supporting virtual hosts

2007-11-22 Thread Niels Provos
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. Niels. On Nov 21, 2007 11:39 PM,

Re: [Libevent-users] evhttp supporting virtual hosts

2007-11-22 Thread Niels Provos
On Nov 22, 2007 10:29 AM, <[EMAIL PROTECTED]> wrote: > On the other hand, I understand that my request could not be shared with > other libevent users. In that case does libevent provide api that would > allow such usage of http ? Thanks to "coach" me a little bit to find an > "elegant" and perfor

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 ans

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 expertis

[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.