Skip to main content

8. IANA Considerations (IANA 考虑事项)

8.1. Header Field Registration (头部字段注册)

HTTP 头部字段在 "Message Headers" 注册表中注册, 该注册表维护在 http://www.iana.org/assignments/message-headers/

本文档定义了以下 HTTP 头部字段, 因此 "Permanent Message Header Field Names" 注册表已根据 [RFC3864] 进行了相应更新:

Header Field NameProtocolStatusReference
ConnectionhttpstandardSection 6.1
Content-LengthhttpstandardSection 3.3.2
HosthttpstandardSection 5.4
TEhttpstandardSection 4.3
TrailerhttpstandardSection 4.4
Transfer-EncodinghttpstandardSection 3.3.1
UpgradehttpstandardSection 6.7
ViahttpstandardSection 5.7.1

此外, 头部字段名称 "Close" 已被注册为 "reserved", 因为在 HTTP/1.0 中使用该名称会混淆解析器, 错误地将其与连接头部字段 (Section 8.1) 关联。

8.2. URI Scheme Registration (URI 方案注册)

IANA 已更新了 "http" 和 "https" URI 方案的注册 (最初在 [RFC2617] 和 [RFC2818] 中定义) 以引用本规范。

8.3. Internet Media Type application/http (互联网媒体类型 application/http)

IANA 已更新了 "application/http" 媒体类型注册 (最初在 [RFC2616] 中定义) 以引用本规范。

Type name: application

Subtype name: http

Required parameters: N/A

Optional parameters:

  • msgtype: HTTP 消息类型 - "request" 或 "response"。如果该参数的值不被识别, 或者被省略, 则应用程序应该将其视为 "request" 类型。
  • version: HTTP 主.次版本号, 例如 "1.1"。如果省略, 此参数默认为 "1.x", 即值默认为 1 的主版本和未指定的次版本。

Encoding considerations: 仅允许 "7bit"、"8bit" 或 "binary"。

Security considerations: 参见 Section 9

Interoperability considerations: N/A

Published specification: RFC 7230 (本文档)

Applications that use this media type: 各种 HTTP 应用程序

Fragment identifier considerations: N/A

Additional information:

  • Deprecated alias names for this type: N/A
  • Magic number(s): N/A
  • File extension(s): N/A
  • Macintosh file type code(s): N/A

Person and email address to contact for further information: 参见 Authors' Addresses 部分。

Intended usage: COMMON

Restrictions on usage: N/A

Author: 参见 Authors' Addresses 部分。

Change controller: IESG

8.4. Transfer Coding Registry (传输编码注册表)

传输编码名称注册表在 http://www.iana.org/assignments/http-parameters/ 维护。

注册表列出了传输编码名称并包含指向定义它们的规范的指针。注册应包括以下信息:

  • Name: 传输编码的名称
  • Description: 传输编码的简短描述
  • Pointer: 指向定义规范的引用

新传输编码的注册需要 IETF Review (参见 [RFC5226] 的 [Section 4.1])。

本文档注册了以下传输编码:

NameDescriptionReference
chunked分块传输编码Section 4.1
compressUNIX "compress" 数据格式Section 4.2.1
deflate"deflate" 压缩数据格式Section 4.2.2
gzipGZIP 文件格式Section 4.2.3

8.5. Content Coding Registry (内容编码注册表)

内容编码名称注册表在 http://www.iana.org/assignments/http-parameters/ 维护。

本文档注册了以下内容编码 (参见 Section 4.2):

NameDescriptionReference
compressUNIX "compress" 数据格式Section 4.2.1
deflate"deflate" 压缩数据格式Section 4.2.2
gzipGZIP 文件格式Section 4.2.3

8.6. Upgrade Token Registry (升级令牌注册表)

HTTP 升级令牌注册表定义了用于 Upgrade 头部字段 (Section 6.7) 的命名空间。升级令牌注册表在 http://www.iana.org/assignments/http-upgrade-tokens 维护。


📍 Section 8 翻译完成