请输入您要查询的百科知识:

 

词条 URL Template
释义

  1. Examples

  2. See also

  3. External links

A URL Template is a way to specify a URL that includes parameters that must be substituted before the URL is resolved. It was standardized by RFC 6570 in March 2012.

The syntax is usually to enclose the parameter in Braces ({example}). The convention is for a parameter to not be Percent encoded unless it follows a Question Mark (?).

Examples

  • http://example.com/people/{firstName}-{lastName}/SSN
  • http://example.com/query?firstName={firstName}&lastName={lastName}

If we were building these urls for Björk with firstName=Björk and lastName=Guðmundsdóttir they would be:

  • http://example.com/people/Björk-Guðmundsdóttir/SSN
  • http://example.com/query?firstName=Bj%c3%b6rk&lastName=Gu%c3%b0mundsd%c3%b3ttir

See also

  • European Legislation Identifier (URL template is used by ELI)

External links

  • RFC6570 - URI Template at the IETF
  • [https://code.google.com/archive/p/uri-templates/wikis/Implementations.wiki List of RFC6570 Implementations]
{{DEFAULTSORT:Url Template}}

2 : Internet Standards|URL

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/14 13:37:14