This page was translated from English by the community.Learn more and join the MDN Web Docs community.
Content-Range
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월.
Content-Range HTTP 응답 헤더는 전체 바디 메시지에서 부분 메시지가 속한 위치를 알려줍니다.
In this article
문법
http
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>
문서의 총 크기(또는 모른다면
'*')
예제
http
Content-Range: bytes 200-1000/67589명세서
| Specification |
|---|
| HTTP Semantics> # field.content-range> |
브라우저 호환성
함께 참고할 내용
If-RangeRangeContent-Type206Partial Content416Range Not Satisfiable