Library/HTTP/Router.php
static private function _process(\Lollipop\HTTP\Request $req, \Lollipop\HTTP\Response $res) {
        if (is_null(self::$_kernel)) {
            $active = self::$_active_route;
            $top = function(\Lollipop\HTTP\Request $req, \Lollipop\HTTP\Response $res) use ($active) {
                return Route::resolve($active['callback'], $req, $res, $active['arguments']);
            };
            self::$_kernel = $top;
        }
        
        // Create a new address for the top callable
        $start = self::$_kernel;
        
        // Start dequeue
        self::$_busy = true;
        $new_response = $start($req, $res);
        self::$_busy = false;
        
        // Just want to make sure that processed response from middlewares
        // are instance of \Calf\HTTP\Response
        if ($new_response instanceof \Lollipop\HTTP\Response) {
            $res = $new_response;
        } else {
            $res->set($new_response);
        }

        return $res;
    }
static private function _process(\Lollipop\HTTP\Request $req, \Lollipop\HTTP\Response $res) {
        if (is_null(self::$_kernel)) {
            $active = self::$_active_route;
            $top = function(\Lollipop\HTTP\Request $req, \Lollipop\HTTP\Response $res) use ($active) {
                return Route::resolve($active['callback'], $req, $res, $active['arguments']);
            };
            self::$_kernel = $top;
        }
        
        // Create a new address for the top callable
        $start = self::$_kernel;
        
        // Start dequeue
        self::$_busy = true;
        $new_response = $start($req, $res);
        self::$_busy = false;
        
        // Just want to make sure that processed response from middlewares
        // are instance of \Calf\HTTP\Response
        if ($new_response instanceof \Lollipop\HTTP\Response) {
            $res = $new_response;
        } else {
            $res->set($new_response);
        }

        return $res;
    }
static private function _process ( \ Lollipop \ HTTP \ Request $ req , \ Lollipop \ HTTP \ Response $ res ) { if ( is_null ( self :: $ _kernel ) ) { $ active = self :: $ _active_route ; $ top = function ( \ Lollipop \ HTTP \ Request $ req , \ Lollipop \ HTTP \ Response $ res ) use ( $ active ) { return Route :: resolve ( $ active [ 'callback' ] , $ req , $ res , $ active [ 'arguments' ] ) ; } ; self :: $ _kernel = $ top ; } // Create a new address for the top callable $ start = self :: $ _kernel ; // Start dequeue self :: $ _busy = true ; $ new_response = $ start ( $ req , $ res ) ; self :: $ _busy = false ; // Just want to make sure that processed response from middlewares // are instance of \Calf\HTTP\Response if ( $ new_response instanceof \ Lollipop \ HTTP \ Response ) { $ res = $ new_response ; } else { $ res -> set ( $ new_response ) ; } return $ res ; }
Process middleware stack

@access  private
@param   \Lollipop\HTTP\Request  $req    Request Object
@param   \Lollipop\HTTP\Response $res    Response Object
@return  \Lollipop\HTTP\Response Response object
Process middleware stack