没有协议的 URL 有名称吗?
Is there a name for a URL with no protocol?
一个简单的 URL 通常具有 protocol://host:port
:
的模式
但是如果我省略协议:
localhost:8080
它仍然是 URL 还是有不同的名称?
我知道协议相关 URL 的存在,这也是它们的情况吗?
localhost:8080
不能是 relative reference,因为它们必须以 //
开头(在这种情况下它将是 网络路径引用 ,通常称为 协议相对引用 ),带有 /
,或带有不包含 :
.[=33= 的路径段]
(对于后一种情况,您可以使用 ./localhost:8080
。)
localhost:8080
作为 http://localhost:8080
的一部分
在 URI http://localhost:8080
中,localhost:8080
部分是 authority component。
localhost
部分是 host subcomponent, the part :8080
is the port subcomponent。
localhost:8080
作为 URI
localhost:8080
本身在句法上也是一个 URI:
但是因为 localhost
不是 registered URI scheme, localhost:8080
is currently not a valid URI。
一个简单的 URL 通常具有 protocol://host:port
:
但是如果我省略协议:
localhost:8080
它仍然是 URL 还是有不同的名称?
我知道协议相关 URL 的存在,这也是它们的情况吗?
localhost:8080
不能是 relative reference,因为它们必须以 //
开头(在这种情况下它将是 网络路径引用 ,通常称为 协议相对引用 ),带有 /
,或带有不包含 :
.[=33= 的路径段]
(对于后一种情况,您可以使用 ./localhost:8080
。)
localhost:8080
作为 http://localhost:8080
的一部分
在 URI http://localhost:8080
中,localhost:8080
部分是 authority component。
localhost
部分是 host subcomponent, the part :8080
is the port subcomponent。
localhost:8080
作为 URI
localhost:8080
本身在句法上也是一个 URI:
但是因为 localhost
不是 registered URI scheme, localhost:8080
is currently not a valid URI。