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 的注册过程以及下表汇总的方法名称.
| Method | Safe | Idempotent | Section |
|---|---|---|---|
| CONNECT | no | no | 9.3.6 |
| DELETE | no | yes | 9.3.5 |
| GET | yes | yes | 9.3.1 |
| HEAD | yes | yes | 9.3.2 |
| OPTIONS | yes | yes | 9.3.7 |
| POST | no | no | 9.3.3 |
| PUT | no | yes | 9.3.4 |
| TRACE | yes | yes | 9.3.8 |
| * | no | no | 18.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 的注册过程以及下表汇总的状态码值.
| Value | Description | Section |
|---|---|---|
| 100 | Continue | 15.2.1 |
| 101 | Switching Protocols | 15.2.2 |
| 200 | OK | 15.3.1 |
| 201 | Created | 15.3.2 |
| 202 | Accepted | 15.3.3 |
| 203 | Non-Authoritative Information | 15.3.4 |
| 204 | No Content | 15.3.5 |
| 205 | Reset Content | 15.3.6 |
| 206 | Partial Content | 15.3.7 |
| 300 | Multiple Choices | 15.4.1 |
| 301 | Moved Permanently | 15.4.2 |
| 302 | Found | 15.4.3 |
| 303 | See Other | 15.4.4 |
| 304 | Not Modified | 15.4.5 |
| 305 | Use Proxy | 15.4.6 |
| 306 | (Unused) | 15.4.7 |
| 307 | Temporary Redirect | 15.4.8 |
| 308 | Permanent Redirect | 15.4.9 |
| 400 | Bad Request | 15.5.1 |
| 401 | Unauthorized | 15.5.2 |
| 402 | Payment Required | 15.5.3 |
| 403 | Forbidden | 15.5.4 |
| 404 | Not Found | 15.5.5 |
| 405 | Method Not Allowed | 15.5.6 |
| 406 | Not Acceptable | 15.5.7 |
| 407 | Proxy Authentication Required | 15.5.8 |
| 408 | Request Timeout | 15.5.9 |
| 409 | Conflict | 15.5.10 |
| 410 | Gone | 15.5.11 |
| 411 | Length Required | 15.5.12 |
| 412 | Precondition Failed | 15.5.13 |
| 413 | Content Too Large | 15.5.14 |
| 414 | URI Too Long | 15.5.15 |
| 415 | Unsupported Media Type | 15.5.16 |
| 416 | Range Not Satisfiable | 15.5.17 |
| 417 | Expectation Failed | 15.5.18 |
| 418 | (Unused) | 15.5.19 |
| 421 | Misdirected Request | 15.5.20 |
| 422 | Unprocessable Content | 15.5.21 |
| 426 | Upgrade Required | 15.5.22 |
| 500 | Internal Server Error | 15.6.1 |
| 501 | Not Implemented | 15.6.2 |
| 502 | Bad Gateway | 15.6.3 |
| 503 | Service Unavailable | 15.6.4 |
| 504 | Gateway Timeout | 15.6.5 |
| 505 | HTTP Version Not Supported | 15.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' 的所有条目移动到此注册表, 并应用以下变更:
-
省略 'Applicable Protocol' 字段.
-
状态为 'standard', 'experimental', 'reserved' 或 'informational' 的条目已改为具有 'permanent' 状态.
-
没有状态的 provisional 条目已改为具有 'provisional' 状态.
-
没有状态的 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 Name | Status | Section | Comments |
|---|---|---|---|
| Accept | permanent | 12.5.1 | |
| Accept-Charset | deprecated | 12.5.2 | |
| Accept-Encoding | permanent | 12.5.3 | |
| Accept-Language | permanent | 12.5.4 | |
| Accept-Ranges | permanent | 14.3 | |
| Allow | permanent | 10.2.1 | |
| Authentication-Info | permanent | 11.6.3 | |
| Authorization | permanent | 11.6.2 | |
| Connection | permanent | 7.6.1 | |
| Content-Encoding | permanent | 8.4 | |
| Content-Language | permanent | 8.5 | |
| Content-Length | permanent | 8.6 | |
| Content-Location | permanent | 8.7 | |
| Content-Range | permanent | 14.4 | |
| Content-Type | permanent | 8.3 | |
| Date | permanent | 6.6.1 | |
| ETag | permanent | 8.8.3 | |
| Expect | permanent | 10.1.1 | |
| From | permanent | 10.1.2 | |
| Host | permanent | 7.2 | |
| If-Match | permanent | 13.1.1 | |
| If-Modified-Since | permanent | 13.1.3 | |
| If-None-Match | permanent | 13.1.2 | |
| If-Range | permanent | 13.1.5 | |
| If-Unmodified-Since | permanent | 13.1.4 | |
| Last-Modified | permanent | 8.8.2 | |
| Location | permanent | 10.2.2 | |
| Max-Forwards | permanent | 7.6.2 | |
| Proxy-Authenticate | permanent | 11.7.1 | |
| Proxy-Authentication-Info | permanent | 11.7.3 | |
| Proxy-Authorization | permanent | 11.7.2 | |
| Range | permanent | 14.2 | |
| Referer | permanent | 10.1.3 | |
| Retry-After | permanent | 10.2.3 | |
| Server | permanent | 10.2.4 | |
| TE | permanent | 10.1.4 | |
| Trailer | permanent | 6.6.2 | |
| Upgrade | permanent | 7.8 | |
| User-Agent | permanent | 10.1.5 | |
| Vary | permanent | 12.5.5 | |
| Via | permanent | 7.6.3 | |
| WWW-Authenticate | permanent | 11.6.1 | |
| * | permanent | 12.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 的注册过程以及下表汇总的内容编码名称.
| Name | Description | Section |
|---|---|---|
| compress | UNIX "compress" data format [Welch] | 8.4.1.1 |
| deflate | "deflate" compressed data ([RFC1951]) inside the "zlib" data format ([RFC1950]) | 8.4.1.2 |
| gzip | GZIP file format [RFC1952] | 8.4.1.3 |
| identity | Reserved | 12.5.3 |
| x-compress | Deprecated (alias for compress) | 8.4.1.1 |
| x-gzip | Deprecated (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 Name | Description | Section |
|---|---|---|
| bytes | a range of octets | 14.1.2 |
| none | reserved as keyword to indicate range requests are not supported | 14.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 端口服务:
-
使用本文档作为 "Reference", 并且
-
当当前未指定时, 将 "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 名称.
| Name | Description | Expected Version Tokens | Section |
|---|---|---|---|
| HTTP | Hypertext Transfer Protocol | any DIGIT. DIGIT (e.g., "2.0") | 2.5 |