2. 是否正在使用 HTTP?
2. 是否正在使用 HTTP? (Is HTTP Being Used?)
不同 application 使用 HTTP 时目标各不相同. 当某个规范定义的 application 满足以下条件时, 本文档中的 recommendation 适用:
-
使用 transport port 80 或 443, 或
-
使用 URI scheme "http" 或 "https", 或
-
使用通用标识 HTTP 的 ALPN protocol ID [RFC7301] (例如 "http/1.1", "h2", "h3"), 或
-
在为 HTTP 定义的 IANA registry 中进行注册, 或对这些 registry 进行整体修改.
此外, 当某个规范正在使用 HTTP 时, HTTP protocol suite 的所有 requirement 都有效 (尤其是 [HTTP], 也包括正在使用的具体 HTTP version 以及任何正在使用的 extension 等其他规范).
注意, 本文档旨在适用于 application, 而非 HTTP 的 generic extension. 此外, 虽然本文档面向 IETF-specified application, 但也鼓励其他 standards organisation 遵循其 requirement.