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 エンティティヘッダーは、受信者に送信されるエンティティ本文の長さをバイト単位で示します。

ヘッダー種別 エンティティヘッダー
禁止ヘッダー名 はい

構文

Content-Length: <length>

ディレクティブ

<length>

オクテット列の長さの 10 進数表記。

仕様書

仕様書 題名
RFC 7230, セクション 3.3.2: Content-Length Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing

ブラウザーの対応

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Content-Length
CORS-safelisted response header

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報