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 응답 헤더는 전체 바디 메시지에서 부분 메시지가 속한 위치를 알려줍니다.

헤더 타입 Response header, Payload header
금지된 헤더 이름 아니오
CORS-safelisted response-header 아니오
CORS-safelisted response-header 아니오

문법

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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Content-Range

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

함께 참고할 내용