I've made a small patch to WebServer.nml to help me develop a small haXe lib. I need better control of URIs to make a Front Controller. With Apache, I would use ForceType or mod_rewrite but I can't get mod_neko to work on my (OS X) dev machine, and I also find nekotools server to be a great tool for development so my lib must work with both.

Anyway, I added a command line parameter '-raw' for "raw URIs" that will change the way the request is handled. With this parameter, the WebServer looks for index.n in the base directory and ignores the rest of the request, but it's still available with get_uri() to your application. You can then dispatch the request as you wish.

Maybe someone will use this...

Attachment: WebServer.nml.diff
Description: Binary data

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to