跳到主要内容

18. IANA 注意事项

以下注册项的变更控制方为: "IETF ([email protected]) - Internet Engineering Task Force".

18.1. URI Scheme 注册

IANA 已更新 https://www.iana.org/assignments/uri-schemes/ 上的 "Uniform Resource Identifier (URI) Schemes" 注册表 [BCP35], 加入 Section 4.2 的 Table 2 中列出的永久 scheme.

18.2. 方法注册

IANA 已更新 https://www.iana.org/assignments/http-methods 上的 "Hypertext Transfer Protocol (HTTP) Method Registry", 使用 Section 16.1.1 的注册过程以及下表汇总的方法名称.

MethodSafeIdempotentSection
CONNECTnono9.3.6
DELETEnoyes9.3.5
GETyesyes9.3.1
HEADyesyes9.3.2
OPTIONSyesyes9.3.7
POSTnono9.3.3
PUTnoyes9.3.4
TRACEyesyes9.3.8
*nono18.2

方法名 "" 被保留, 因为将 "" 用作方法名会与它在某些字段中作为通配符的用法冲突 (例如 "Access-Control-Request-Method").

18.3. 状态码注册

IANA 已更新 https://www.iana.org/assignments/http-status-codes 上的 "Hypertext Transfer Protocol (HTTP) Status Code Registry", 使用 Section 16.2.1 的注册过程以及下表汇总的状态码值.

ValueDescriptionSection
100Continue15.2.1
101Switching Protocols15.2.2
200OK15.3.1
201Created15.3.2
202Accepted15.3.3
203Non-Authoritative Information15.3.4
204No Content15.3.5
205Reset Content15.3.6
206Partial Content15.3.7
300Multiple Choices15.4.1
301Moved Permanently15.4.2
302Found15.4.3
303See Other15.4.4
304Not Modified15.4.5
305Use Proxy15.4.6
306(Unused)15.4.7
307Temporary Redirect15.4.8
308Permanent Redirect15.4.9
400Bad Request15.5.1
401Unauthorized15.5.2
402Payment Required15.5.3
403Forbidden15.5.4
404Not Found15.5.5
405Method Not Allowed15.5.6
406Not Acceptable15.5.7
407Proxy Authentication Required15.5.8
408Request Timeout15.5.9
409Conflict15.5.10
410Gone15.5.11
411Length Required15.5.12
412Precondition Failed15.5.13
413Content Too Large15.5.14
414URI Too Long15.5.15
415Unsupported Media Type15.5.16
416Range Not Satisfiable15.5.17
417Expectation Failed15.5.18
418(Unused)15.5.19
421Misdirected Request15.5.20
422Unprocessable Content15.5.21
426Upgrade Required15.5.22
500Internal Server Error15.6.1
501Not Implemented15.6.2
502Bad Gateway15.6.3
503Service Unavailable15.6.4
504Gateway Timeout15.6.5
505HTTP Version Not Supported15.6.6

18.4. 字段名注册

本规范更新了 [RFC3864] 中为消息头字段定义的现有注册过程里与 HTTP 相关的部分. 它通过定义新的注册过程并将 HTTP 字段定义移动到单独注册表, 取代了与 HTTP 相关的旧过程.

IANA 已按 Section 16.3.1 所述创建新的注册表, 名为 "Hypertext Transfer Protocol (HTTP) Field Name Registry".

IANA 已将 "Permanent Message Header Field Names" 和 "Provisional Message Header Field Names" 注册表 (见 https://www.iana.org/assignments/message-headers/) 中 protocol 为 'http' 的所有条目移动到此注册表, 并应用以下变更:

  1. 省略 'Applicable Protocol' 字段.

  2. 状态为 'standard', 'experimental', 'reserved' 或 'informational' 的条目已改为具有 'permanent' 状态.

  3. 没有状态的 provisional 条目已改为具有 'provisional' 状态.

  4. 没有状态的 permanent 条目 (在确认注册文档未定义状态之后) 已改为具有 'provisional' 状态. 如果有证据表明其他状态更适当, 专家可以选择更新这些条目的状态.

IANA 已在 "Permanent Message Header Field Names" 和 "Provisional Message Header Field Names" 注册表中添加以下注记, 以表明 HTTP field name 注册已移动:

Note

HTTP field name registrations have been moved to [https://www.iana.org/assignments/http-fields] per [RFC9110].

IANA 已使用下表所列字段名更新 "Hypertext Transfer Protocol (HTTP) Field Name Registry".

Field NameStatusSectionComments
Acceptpermanent12.5.1
Accept-Charsetdeprecated12.5.2
Accept-Encodingpermanent12.5.3
Accept-Languagepermanent12.5.4
Accept-Rangespermanent14.3
Allowpermanent10.2.1
Authentication-Infopermanent11.6.3
Authorizationpermanent11.6.2
Connectionpermanent7.6.1
Content-Encodingpermanent8.4
Content-Languagepermanent8.5
Content-Lengthpermanent8.6
Content-Locationpermanent8.7
Content-Rangepermanent14.4
Content-Typepermanent8.3
Datepermanent6.6.1
ETagpermanent8.8.3
Expectpermanent10.1.1
Frompermanent10.1.2
Hostpermanent7.2
If-Matchpermanent13.1.1
If-Modified-Sincepermanent13.1.3
If-None-Matchpermanent13.1.2
If-Rangepermanent13.1.5
If-Unmodified-Sincepermanent13.1.4
Last-Modifiedpermanent8.8.2
Locationpermanent10.2.2
Max-Forwardspermanent7.6.2
Proxy-Authenticatepermanent11.7.1
Proxy-Authentication-Infopermanent11.7.3
Proxy-Authorizationpermanent11.7.2
Rangepermanent14.2
Refererpermanent10.1.3
Retry-Afterpermanent10.2.3
Serverpermanent10.2.4
TEpermanent10.1.4
Trailerpermanent6.6.2
Upgradepermanent7.8
User-Agentpermanent10.1.5
Varypermanent12.5.5
Viapermanent7.6.3
WWW-Authenticatepermanent11.6.1
*permanent12.5.5(reserved)

字段名 "*" 被保留, 因为将该名称用作 HTTP 头字段可能会与它在 Vary 头字段中的特殊语义冲突 (Section 12.5.5).

IANA 已在新注册表中更新 "Content-MD5" 条目, 将其状态设为 'obsoleted', 并引用 [RFC2616] 的 Section 14.15 (作为该头字段的定义) 以及 [RFC7231] 的 Appendix B (该附录从更新后的规范中移除了该字段定义).

18.5. 认证方案注册

IANA 已更新 https://www.iana.org/assignments/http-authschemes 上的 "Hypertext Transfer Protocol (HTTP) Authentication Scheme Registry", 使用 Section 16.4.1 的注册过程. 本文档未定义认证方案.

18.6. 内容编码注册

IANA 已更新 https://www.iana.org/assignments/http-parameters/ 上的 "HTTP Content Coding Registry", 使用 Section 16.6.1 的注册过程以及下表汇总的内容编码名称.

NameDescriptionSection
compressUNIX "compress" data format [Welch]8.4.1.1
deflate"deflate" compressed data ([RFC1951]) inside the "zlib" data format ([RFC1950])8.4.1.2
gzipGZIP file format [RFC1952]8.4.1.3
identityReserved12.5.3
x-compressDeprecated (alias for compress)8.4.1.1
x-gzipDeprecated (alias for gzip)8.4.1.3

18.7. 范围单位注册

IANA 已更新 https://www.iana.org/assignments/http-parameters/ 上的 "HTTP Range Unit Registry", 使用 Section 16.5.1 的注册过程以及下表汇总的范围单位名称.

Range Unit NameDescriptionSection
bytesa range of octets14.1.2
nonereserved as keyword to indicate range requests are not supported14.3

18.8. 媒体类型注册

IANA 已更新 https://www.iana.org/assignments/media-types 上的 "Media Types" 注册表, 加入 Section 14.6 中定义的媒体类型 multipart/byteranges 的注册信息.

IANA 已更新关于 "q" 参数的注册表注记, 添加指向本文档 Section 12.5.1 的链接.

18.9. 端口注册

IANA 已更新 https://www.iana.org/assignments/service-names-port-numbers/ 上的 "Service Name and Transport Protocol Port Number Registry", 针对使用 UDP 或 TCP 的 80 和 443 端口服务:

  1. 使用本文档作为 "Reference", 并且

  2. 当当前未指定时, 将 "Assignee" 设为 "IESG", 将 "Contact" 设为 "IETF_Chair".

18.10. Upgrade Token 注册

IANA 已更新 https://www.iana.org/assignments/http-upgrade-tokens 上的 "Hypertext Transfer Protocol (HTTP) Upgrade Token Registry", 使用 Section 16.7 中描述的注册过程以及下表汇总的 upgrade token 名称.

NameDescriptionExpected Version TokensSection
HTTPHypertext Transfer Protocolany DIGIT. DIGIT (e.g., "2.0")2.5