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 July 2015.
Content-Range
HTTP 응답 헤더는 전체 바디 메시지에서 부분 메시지가 속한 위치를 알려줍니다.
문법
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 |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Content-Range |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on 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