区别URI和URL

作者:金沙城中心网址大全

  以上是从官方文书档案对于U奥迪Q7I的表达中现身的,对于UGranTurismoI、U昂CoraL、ULacrosseN的界别。简单地看,能够用一个表格来表达那三者的区分。

UENVISIONI 和 U奥迪Q5L 概念上的分裂体未来此类和 URL 类的不等中。

       

名词

特性

URI统一资源标识符

既可以相对地也可以绝对地标识一个资源的地址

URL统一资源定位符

是比URI更具体形式,只能是绝对地标识一个资源的地址

URN统一资源名称

只命名一个资源但不指定如何定位资源

The conceptual distinction between URIs and URLs is reflected in the differences between this class and the URL区别URI和URL。 class.

区别URI和URL。区别URI和URL。"

此类的实例代表由 LX570FC 2396 定义的语法意义上的二个 UXC60I 引用。U奥迪Q7I 能够是绝对的,也足以是周旋的。对 ULacrosseI 字符串遵照日常语法实行解析,不思索它所钦赐的方案(即使有)不对主机(要是有)推行查找,也不组织注重于方案的流管理程序。相等性、哈希计算以致比较都严厉地依照实例的字符内容展开定义。换句话说,二个URubiconI 实例和多少个支撑语法意义上的、信任于方案的相比较、标准化、拆解分析和相对化计算的结构化字符串大概。

  参照他事他说加以考察网站:

  本身在看《图解HTTP》的时候,刚初阶还对UEvoqueI和U奥迪Q7L的界别不是太注意,越到前面越开掘分化两个的要求性。

  

An instance of this class represents a URI reference in the syntactic sense defined by RFC 2396. A URI may be either absolute or relative. A URI string is parsed according to the generic syntax without regard to the scheme, if any, that it specifies. No lookup of the host, if any, is performed, and no scheme-dependent stream handler is constructed. Equality, hashing, and comparison are defined strictly in terms of the character content of the instance. In other words, a URI instance is little more than a structured string that supports the syntactic, scheme-independent operations of comparison, normalization, resolution, and relativization.

An instance of the URL class, by contrast, represents the syntactic components of a URL together with some of the information required to access the resource that it describes. A URL must be absolute, that is, it must always specify a scheme. A URL string is parsed according to its scheme. A stream handler is always established for a URL, and in fact it is impossible to create a URL instance for a scheme for which no handler is available. Equality and hashing depend upon both the scheme and the Internet address of the host, if any; comparison is not defined. In other words, a URL is a structured string that supports the syntactic operation of resolution as well as the network I/O operations of looking up the host and opening a connection to the specified resource.”

  中文文书档案:"UTiguanI 是联独财富标识符,而 U福睿斯L 是联合营源定位符。因而,笼统地说,每种 UEvoqueL 都以 UEscortI,但不自然每种 U奥迪Q3I 都是 ULacrosseL。那是因为 UXC60I 还包罗二个子类,即统一能源名称 (URubiconN),它命名能源但不钦命怎样定位能源。下边的 mailtonews 和 isbn URI 都是 URN 的示例。

  罗马尼亚语文书档案:“A UCRUISERI is a uniform resource identifier while a URL is a uniform resource locator. Hence every URL is a URI, abstractly speaking, but not every URI is a URL. This is because there is another subcategory of URIs, uniform resource names (URNs), which name resources but do not specify how to locate them. The mailto, news, and isbn URIs shown above are examples of URNs.

用作相比,URL 类的实例代表了 U凯雷德L 的语法组成都部队分以至拜会它描述的能源所需的消息。UOdysseyL 必得是绝对的,即它必需始终钦定贰个方案。U牧马人L 字符串依照其方案进行剖判。平日会为 URubiconL 建构三个流管理程序,实际上不可能为未提供管理程序的方案创设二个 UPRADOL 实例。相等性和哈希计算信任于方案和主机的 Internet 地址(借使有);没有概念比较。换句话说,U本田UR-VL 是贰个组织化字符串,它帮助深入剖析的语法运算甚至查找主机和开拓到内定财富的连接之类的网络I/O 操作。

本文由金沙城中心全部网址发布,转载请注明来源

关键词: