[Libevent-users] How to make a Generic handler ?
william at opensource4you.com
william at opensource4you.com
Sun Oct 14 05:22:01 EDT 2007
I would like to know the best way to write a generic handler to dispatch
my static files located at /static ?
Indeed, evhttp_set_cb needs to have the complete uri. For example,
/static/img/home.jpg.
On the orther hand evhttp_set_gencb is generic for the all uri. This is a
of nice way to display "this page is not accessible".
I'm looking an handler that will manage all my static files. In other
words, when the requestor detect an uri starting by "/static", he should
always call the same handler.
Is there someone who already have think about this ?
How have you solve it decently ?
Thanks
More information about the Libevent-users
mailing list