Content-Range
HTTP 응답 헤더는 전체 바디 메시지에 속한 부분 메시지의 위치를 알려줍니다.
헤더 타입 | Response header |
---|---|
Forbidden header name | 아니오 |
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, section 4.2: Content-Range | Hypertext Transfer Protocol (HTTP/1.1): Range Requests |
브라우저 호환성
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
함께 참고할 내용
If-Range
Range
Content-Type
206
Partial Content
416
Range Not Satisfiable