Content-Length
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Content-Length
是一个实体消息首部,用来指明发送给接收方的消息主体的大小,即用十进制数字表示的八位元组的数目。
Header type | Entity header |
---|---|
Forbidden header name | yes |
语法
Content-Length: <length>
指令
- <length>
-
消息的长度,用十进制数字表示的八位字节的数目。
规范
Specification |
---|
HTTP Semantics # field.content-length |
浏览器兼容性
BCD tables only load in the browser