nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd4a6ca
)
lib/nitcorn: handles uri parameters in reactor
author
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 12 Dec 2014 02:36:13 +0000
(21:36 -0500)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 12 Dec 2014 22:41:38 +0000
(17:41 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/nitcorn/reactor.nit
patch
|
blob
|
history
diff --git
a/lib/nitcorn/reactor.nit
b/lib/nitcorn/reactor.nit
index
1a56ee8
..
48084e0
100644
(file)
--- a/
lib/nitcorn/reactor.nit
+++ b/
lib/nitcorn/reactor.nit
@@
-21,7
+21,7
@@
module reactor
import more_collections
import libevent
-import server_config
+import vararg_routes
import http_request
import http_response
@@
-72,6
+72,9
@@
class HttpServer
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