跳到主要内容

1. Introduction (简介)

Hypertext Transfer Protocol (HTTP) 是一种无状态 application-level request/response protocol. 它使用可扩展语义和自描述 message payload, 支持与基于网络的 hypertext information system 进行灵活交互.

RFC 7230 是 HTTP/1.1 规范系列的第一部分, 关注 message syntax, message framing, connection management, URI scheme, routing 和 forwarding requirement. 它与 RFC 7231, RFC 7232, RFC 7233, RFC 7234 和 RFC 7235 共同取代 RFC 2616.

HTTP 是通用 interface protocol. 它通过统一接口隐藏 service implementation 细节, 让 client 不必了解资源背后的实现方式, server 也不必了解每个 client 的最终目的. HTTP 也可作为 intermediation protocol, 由 proxy 和 gateway 在 HTTP 与非 HTTP information system 之间转换.

本文档定义与 message semantic 无关的 HTTP message handling 机制, 包括 parser 和 forwarding intermediary 必须遵守的要求.

1.1 Conventions (约定)

本文中的 MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAYOPTIONAL 按 RFC 2119 解释.

1.2 Syntax Notation (语法记法)

本规范使用 RFC 5234 的 Augmented Backus-Naur Form (ABNF). 第 7 章定义用于 comma-separated list 的 # list extension. Appendix B 给出展开后的完整 ABNF.

obs- 为前缀的 ABNF rule name 表示因历史原因保留的 obsolete syntax.