--- title: Content-Range slug: Web/HTTP/Headers/Content-Range tags: - HTTP - HTTPヘッダー - ヘッダー - リファレンス - レスポンスヘッダー translation_of: Web/HTTP/Headers/Content-Range --- <p>{{HTTPSidebar}}</p> <p><strong><code>Content-Range</code></strong> レスポンスの HTTP ヘッダーは、全体のメッセージのどこにメッセージが含まれているかを示します。</p> <table class="properties"> <tbody> <tr> <th scope="row">ヘッダータイプ</th> <td>{{Glossary("Response header")}}</td> </tr> <tr> <th scope="row">{{Glossary("Forbidden header name")}}</th> <td>いいえ</td> </tr> <tr> <th scope="row">{{Glossary("Simple response header", "CORS-safelisted response-header")}}</th> <td>いいえ</td> </tr> </tbody> </table> <h2 id="構文">構文</h2> <pre class="syntaxbox">Content-Range: <unit> <range-start>-<range-end>/<size> Content-Range: <unit> <range-start>-<range-end>/* Content-Range: <unit> */<size></pre> <h2 id="ディレクティブ">ディレクティブ</h2> <dl> <dt><unit></dt> <dd>範囲を指定する単位。これは通常 <code>bytes</code> です。</dd> </dl> <dl> <dt><range-start></dt> <dd>指定された単位の整数で、リクエスト範囲の開始を示します。</dd> <dt><range-end></dt> <dd>リクエストされた範囲の終わりを示す指定された単位の整数。</dd> <dt><size></dt> <dd>ドキュメントの合計サイズ (または未知の場合は <code>'*'</code> )。</dd> </dl> <h2 id="例">例</h2> <pre>Content-Range: bytes 200-1000/67589 </pre> <h2 id="仕様">仕様</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">仕様書</th> <th scope="col">タイトル</th> </tr> <tr> <td>{{RFC("7233", "Content-Range", "4.2")}}</td> <td>Hypertext Transfer Protocol (HTTP/1.1): Range Requests</td> </tr> </tbody> </table> <h2 id="ブラウザの互換性">ブラウザの互換性</h2> <p class="hidden">このページの互換表は構造化データから生成されます。データに貢献したい場合は <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックし、プルリクエストを送信してください。</p> <p>{{Compat("http.headers.Content-Range")}}</p> <h2 id="関連情報">関連情報</h2> <ul> <li>{{HTTPHeader("If-Range")}}</li> <li>{{HTTPHeader("Range")}}</li> <li>{{HTTPHeader("Content-Type")}}</li> <li>{{HTTPStatus("206")}} <code>Partial Content</code></li> <li>{{HTTPStatus("416")}} <code>Range Not Satisfiable</code></li> </ul>