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

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to