blob: 0020ce93e9b93d87f0abd5e461dd004ae9d76f13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
---
title: Content-Range
slug: Web/HTTP/Headers/Content-Range
tags:
- HTTP
- HTTP 헤더
- 응답 헤더
- 참고자료
- 헤더
translation_of: Web/HTTP/Headers/Content-Range
---
<div>{{HTTPSidebar}}</div>
<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">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</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>
|