From 6821fdcbe8197ee6e2a4da395e0e35e1d676d1b6 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Mon, 23 May 2016 16:50:38 -0400 Subject: [PATCH] lib/popcorn: extract Router::handler_in private service Signed-off-by: Alexandre Terrasa --- lib/popcorn/pop_handlers.nit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/popcorn/pop_handlers.nit b/lib/popcorn/pop_handlers.nit index 2ce4755..2f438ef 100644 --- a/lib/popcorn/pop_handlers.nit +++ b/lib/popcorn/pop_handlers.nit @@ -317,6 +317,10 @@ class Router redef fun handle(route, uri, req, res) do if not route.match(uri) then return + handle_in(route, uri, req, res) + end + + private fun handle_in(route: AppRoute, uri: String, req: HttpRequest, res: HttpResponse) do for hroute, handler in handlers do handler.handle(hroute, route.uri_root(uri), req, res) if res.sent then break -- 1.7.9.5