Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
import more_collections
import libevent
import more_collections
import libevent
import http_request
import http_response
import http_request
import http_response
if virtual_host != null then
var route = virtual_host.routes[request.uri]
if route != null then
if virtual_host != null then
var route = virtual_host.routes[request.uri]
if route != null then
+ # include uri parameters in request
+ request.uri_params = route.parse_params(request.uri)
+
var handler = route.handler
var root = route.path
var turi
var handler = route.handler
var root = route.path
var turi