HTTP Content-Length 标头表示发送给接收方的消息体的大小(以字节为单位)。
<table class="properties"> <tbody> <tr> <th scope="row">标头类型</th> <td> Request header、Response header、Content header </td> </tr> <tr> <th scope="row">Forbidden header name</th> <td>是</td> </tr> <tr> <th scope="row"> CORS-safelisted response header </th> <td>是</td> </tr> </tbody> </table>
语法
Content-Length: <length>
指令
<length>- : 以字节为单位的长度。
规范
浏览器兼容性
参见
- Transfer-Encoding
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
