protected function isDefaultPort($scheme, $port)
    {
        if (!isset(self::$defaultPorts[$scheme])) {
            return false;
        }
        return self::$defaultPorts[$scheme] == $port;
    }