18. IANA Considerations (IANA考虑)
以下注册的变更控制者是: "IETF ([email protected]) - Internet Engineering Task Force".
18.1. URI Scheme Registration (URI方案注册)
IANA已更新位于 https://www.iana.org/assignments/uri-schemes/ 的"统一资源标识符(URI)方案"注册表[BCP35],使用第4.2节表2中列出的永久方案.
18.2. Method Registration (方法注册)
IANA已更新位于 https://www.iana.org/assignments/http-methods 的"超文本传输协议(HTTP)方法注册表",使用第16.1.1节的注册程序和下表中总结的方法名称.
| 方法 | Safe | Idempotent | 节 |
|---|---|---|---|
| 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. Status Code Registration (状态码注册)
IANA已更新位于 https://www.iana.org/assignments/http-status-codes 的"超文本传输协议(HTTP)状态码注册表",使用第16.2.1节的注册程序和下表中总结的状态码值.
| 值 | 描述 | 节 |
|---|---|---|
| 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. Field Name Registration (字段名称注册)
本规范更新了[RFC3864]中定义的消息头部字段的现有注册程序的HTTP相关方面. 它通过定义新的注册程序并将HTTP字段定义移动到单独的注册表来替换与HTTP相关的旧程序.
IANA已创建了第16.3.1节中概述的新注册表,标题为"超文本传输协议(HTTP)字段名称注册表".
IANA已将"永久消息头部字段名称"和"临时消息头部字段名称"注册表(参见 https://www.iana.org/assignments/message-headers/)中协议为'http'的所有条目移动到此注册表,并应用了以下更改:
-
"适用协议"字段已被省略.
-
状态为'standard'、'experimental'、'reserved'或'informational'的条目已变为具有'permanent'状态.
-
没有状态的临时条目已变为具有'provisional'状态.
-
没有状态的永久条目(在确认注册文档未定义状态后)已变为具有'provisional'状态. 如果有证据表明另一个状态更合适,专家可以选择更新条目的状态.
IANA已为"永久消息头部字段名称"和"临时消息头部字段名称"注册表添加了以下注释,以指示HTTP字段名称注册已移动:
注意: HTTP字段名称注册已根据[RFC9110]移至
https://www.iana.org/assignments/http-fields.
IANA已使用下表中列出的字段名称更新"超文本传输协议(HTTP)字段名称注册表".
主要字段名称包括: Accept, Accept-Charset, Accept-Encoding, Accept-Language, Accept-Ranges, Allow, Authentication-Info, Authorization, Connection, Content-Encoding, Content-Language, Content-Length, Content-Location, Content-Range, Content-Type, Date, ETag, Expect, From, Host, If-Match, If-Modified-Since, If-None-Match, If-Range, If-Unmodified-Since, Last-Modified, Location, Max-Forwards, Proxy-Authenticate, Proxy-Authentication-Info, Proxy-Authorization, Range, Referer, Retry-After, Server, TE, Trailer, Upgrade, User-Agent, Vary, Via, WWW-Authenticate等.
字段名称"*"被保留,因为使用该名称作为HTTP头部字段可能与其在Vary头部字段中的特殊语义冲突(第12.5.5节).
18.5. Authentication Scheme Registration (认证方案注册)
IANA已更新位于 https://www.iana.org/assignments/http-authschemes 的"超文本传输协议(HTTP)认证方案注册表",使用第16.4.1节的注册程序和第11节中描述的认证方案.
18.6. Content Coding Registration (内容编码注册)
IANA已更新位于 https://www.iana.org/assignments/http-parameters/ 的"HTTP内容编码注册表",使用第16.6.1节的注册程序和第8.4.1节中描述的内容编码.
主要内容编码包括:
- compress
- deflate
- gzip
- x-compress
- x-gzip
18.7. Range Unit Registration (范围单位注册)
IANA已更新位于 https://www.iana.org/assignments/http-parameters/ 的"HTTP范围单位注册表",使用第16.5.1节的注册程序.
已注册的范围单位:
- bytes (参见第14.1.2节)
- none (第14.3节中保留)
18.8. Media Type Registration (媒体类型注册)
IANA已更新位于 https://www.iana.org/assignments/media-types 的"媒体类型"注册表,使用第14.6节中定义的媒体类型multipart/byteranges的注册信息.
18.9. Port Registration (端口注册)
IANA已更新位于 https://www.iana.org/assignments/service-names-port-numbers/ 的"服务名称和传输协议端口号注册表",使用第4.2节中描述的端口号注册.
注册的端口:
- HTTP: 端口80/tcp
- HTTPS: 端口443/tcp
18.10. Upgrade Token Registration (升级令牌注册)
IANA已更新位于 https://www.iana.org/assignments/http-upgrade-tokens 的"超文本传输协议(HTTP)升级令牌注册表",使用第16.7节的注册程序和第7.8节中描述的升级令牌"HTTP".