public function processLocation(MessageEvent $event, $req, $res, $path)
    {
        foreach($this->callback as $location => $callable) {
            if(!preg_match($location, $path)) continue;
            
            $callable = is_string($callable) ? [$this, $callable] : $callable;
            
            if(!is_callable($callable)) {
                return $this->errorResponse($event->sender, 503, "$location defined invalid callback");
            }
            
            return call_user_func($callable, $event, $req, $res, $path);
        }
        
        return false;
    }