首页 > 代码库 > URI.
URI.
Overview of URI
URI are characterized by the following definitions:
Uniform
Uniformity provides several benefits:
it allows different types of resource identifiers to be used in the same context, even when the mechanisms used to access those resources may differ;
it allows uniform semantic interpretation of common syntactic conventions across different types of resource identifiers.
it allows introduction of new types of resource identifiers without interfering with the way that existing identifiers are used.
it allows the identifiers to be reused in many different contexts.
Resource
A resource can be anything that has identity.including an electronic document, an image, a service (e.g., "today‘s weather report for Los Angeles"), and a collection of other resources.
URI, URL, and URN
A URI can be further classified as a locator, a name, or both. The term "Uniform Resource Locator" (URL) refers to the subset of URI that identify resources via a representation of their primary access mechanism (e.g., their network "location"), rather than identifying the resource by name or by some other attribute(s) of that resource. The term "Uniform Resource Name" (URN) refers to the subset of URI that are required to remain globally unique and persistent even when the resource ceases to exist or becomes unavailable.
ref:http://www.ietf.org/rfc/rfc2396.txt
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。