Skip to content

Latest commit

 

History

History
73 lines (56 loc) · 1.83 KB

File metadata and controls

73 lines (56 loc) · 1.83 KB
title slug
Content-Range
Web/HTTP/Headers/Content-Range

{{HTTPSidebar}}

Content-Range レスポンスの HTTP ヘッダーは、全体のメッセージのどこにメッセージが含まれているかを示します。

ヘッダータイプ {{Glossary("Response header")}}
{{Glossary("Forbidden header name")}} いいえ
{{Glossary("Simple response header", "CORS-safelisted response-header")}} いいえ

構文

Content-Range: <unit> <range-start>-<range-end>/<size>
Content-Range: <unit> <range-start>-<range-end>/*
Content-Range: <unit> */<size>

ディレクティブ

  • <unit>
    • : 範囲を指定する単位。これは通常 bytes です。
  • <range-start>
    • : 指定された単位の整数で、リクエスト範囲の開始を示します。
  • <range-end>
    • : リクエストされた範囲の終わりを示す指定された単位の整数。
  • <size>
    • : ドキュメントの合計サイズ (または未知の場合は '*' )。

Content-Range: bytes 200-1000/67589

仕様

仕様書 タイトル
{{RFC("7233", "Content-Range", "4.2")}} Hypertext Transfer Protocol (HTTP/1.1): Range Requests

ブラウザーの互換性

{{Compat}}

関連情報

  • {{HTTPHeader("If-Range")}}
  • {{HTTPHeader("Range")}}
  • {{HTTPHeader("Content-Type")}}
  • {{HTTPStatus("206")}} Partial Content
  • {{HTTPStatus("416")}} Range Not Satisfiable