Content-Length
是一个实体消息首部,用来指明发送给接收方的消息主体的大小,即用十进制数字表示的八位元组的数目。
Header type | Entity header |
---|---|
Forbidden header name | yes |
语法
Content-Length: <length>
指令
- <length>
- 消息的长度,用十进制数字表示的八位字节的数目。
规范
Specification | Title |
---|---|
RFC 7230, section 3.3.2: Content-Length | Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing |
浏览器兼容性
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.