Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. HTTP
  3. 参考
  4. HTTP 标头
  5. Content-Length

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

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 ⁨2015年7月⁩.

HTTPContent-Length 标头表示发送给接收方的消息体的大小(以字节为单位)。

标头类型请求标头响应标头内容标头
禁止修改的标头
列入 CORS 白名单的响应标头

语法

http
Content-Length: <length>

指令

<length>

以字节为单位的长度。

规范

Specification
HTTP Semantics
# field.content-length

浏览器兼容性

参见

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp