src/Router.php
protected function isHTTPS($name)
    {
        if ($this->has($name)) {
            $route = $this->routes[$name];
            if (isset($route['options']['https'])) {
                $https = $route['options']['https'];
                $server_https = $this->request->server->get('HTTPS');
                if ($https === true && (empty($server_https) || $server_https == 'off')) {
                    return false;
                }
            }

            return true;
        }

        return false;
    }
protected function isHTTPS($name)
    {
        if ($this->has($name)) {
            $route = $this->routes[$name];
            if (isset($route['options']['https'])) {
                $https = $route['options']['https'];
                $server_https = $this->request->server->get('HTTPS');
                if ($https === true && (empty($server_https) || $server_https == 'off')) {
                    return false;
                }
            }

            return true;
        }

        return false;
    }
Gibt zurück ob die angegebene Route existiert und ob diese, falls erforderlich
auch mit HTTPS aufgerufen wurde.

@param string $name Name der Route, die überprüft werden soll.

@return bool