public function map($route, $name, $handler, array $methods = array('GET'))
    {
        foreach ($methods as $method) {
            if (null === $name) {
                $this->addRoute($method, $route, $handler);
            } else {
                $this->addNamedRoute($name, $method, $route, $handler);
            }
        }
    }