xml地图|网站地图|网站标签 [设为首页] [加入收藏]

澳门mgm4858集团登录网址URL和URI的区别

  本身在看《图解HTTP》的时候,刚开始还对U途乐I和U奥迪Q7L的分别不是太放在心上,越到背后越开采不相同两个的供给性。

URI = Universal Resource Identifier
URL = Universal Resource Locator

  斯洛伐克语文书档案:“A U帕杰罗I 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.

一句话解释:UGL450I 和 UOdysseyL 都定义了 what the resource is。U途达L 还定义了 how to get the resource。

The conceptual distinction between URIs and URLs is reflected in the differences between this class and the URL class.

U昂CoraI是用来标记互连网的财富的
U福睿斯I分为UENCOREL和U福特ExplorerN这两大类。
U库罗德L与U奥迪Q5N的分化之处在于前面二个不仅仅标志能源,何况还建议了寻访财富的不二诀要。举例利用何种公约(http,ftp...),而U安德拉N则未有。

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.”

  国语文书档案:"UENVISIONI 是联独能源标识符,而 U奇骏L 是联合营源定位符。因而,笼统地说,各个 USportageL 都以 URubiconI,但不自然各个 UPAJEROI 都是 UENVISIONL。那是因为 U冠道I 还满含贰个子类,即联独能源名称 (U奥迪Q3N),它命名能源但不点名如何牢固财富。上边的 mailtonews 和 isbn URI 都是 URN 的示例。

ULacrosseI 和 U兰德酷路泽L 概念上的不等映未来此类和 URL 类的两样中。

此类的实例代表由 ENVISIONFC 2396 定义的语法意义上的一个 U牧马人I 援用。URubiconI 能够是相对的,也足以是周旋的。对 UKoleosI 字符串遵照一般语法进行分析,不考虑它所钦赐的方案(假诺有)不对主机(假如有)实施查找,也不组织正视于方案的流管理程序。相等性、哈希总括以及比较都严酷地依据实例的字符内容展开定义。换句话说,三个U酷威I 实例和贰个支撑语法意义上的、重视于方案的相比较、标准化、分析和相对化总结的结构化字符串大概。

用作相比较,URL 类的实例代表了 UGL450L 的语法组成部分以及拜见它描述的能源所需的音讯。U奥迪Q7L 必得是相对的,即它必需始终内定多个方案。U牧马人L 字符串依照其方案举行解析。平时会为 U哈弗L 建设构造一个流管理程序,实际上不恐怕为未提供管理程序的方案成立一个 U安德拉L 实例。相等性和哈希总结重视于方案和主机的 Internet 地址(假诺有);未有概念相比较。换句话说,U奥德赛L 是八个结构化字符串,它扶助深入分析的语法运算以及查找主机和开垦到钦定能源的连年之类的网络I/O 操作。

"

  以上是从官方文书档案对于UWranglerI的解说中冒出的,对于USportageI、UPAJEROL、UEnclaveN的分别。轻易地看,能够用三个报表来注脚那三者的界别。

名词

特性

URI统一资源标识符

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

URL统一资源定位符

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

URN统一资源名称

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

  

  仿照效法网站:

       

本文由美高梅集团网址发布于综合体育-虎扑体育,转载请注明出处:澳门mgm4858集团登录网址URL和URI的区别

TAG标签:
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。