[Nitro] New Nitro dispatcher proposal
george.moschovitis at gmail.com
Mon Jan 22 04:38:51 EST 2007
as promised I will describe my thoughts on the revised way of handling the
request uris that I would like to include in Nitro.
At the moment the request uri handling in Nitro is quite simple (but
If the uri containts a '.' (in other words if there is a file extension)
-> the request is handled by the front web server.
If the uri has no extension,
-> append the .html extension and check if the file exists
- yes? -> the request is handled by the front web server.
- no? -> the request is handled by Nitro
I propose the following change:
If the uri contains no extension automatically add the .html extension
Does the file pointed to by the uri exist?
- yes ? -> the request is handled by the front web server
- no? -> the request is handled by Nitro (append x at the end of the
if request.uri == index, Nitro searches for
index -> index.html
index.htmlx / index action (nitro)
content_type = text/html
if request.uri == screen.css, Nitro searches for
screen.cssx / screen__css action (nitro)
content_type = text/css
I would love to hear your thoughts on this new scheme.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nitro-general