blob: a073342e97bd8cb6681ebf1821f31f08f18e340b (
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
|
---
title: HEAD
slug: Web/HTTP/Methods/HEAD
tags:
- HTTP
- HTTP method
- Reference
translation_of: Web/HTTP/Methods/HEAD
---
<div>{{HTTPSidebar}}</div>
<p><strong>HTTP <code>HEAD</code> 메서드</strong>는 특정 리소스를 {{httpmethod("GET")}} 메서드로 요청했을 때 돌아올 헤더를 요청합니다.</p>
<p><code>HEAD</code> 메서드에 대한 응답은 본문을 가져선 안되며, 본문이 존재하더라도 무시해야 합니다. 그러나, {{httpheader("Content-Length")}}처럼 본문 콘텐츠를 설명하는 {{glossary("entity header", "개체 헤더")}}는 포함할 수 있습니다. 이 때, 개체 헤더는 비어있어야 하는 <code>HEAD</code>의 본문과는 관련이 없고, 대신 {{httpmethod("GET")}} 메서드로 동일한 리소스를 요청했을 때의 본문을 설명합니다.</p>
<p><code>HEAD</code> 요청의 응답이 캐시했던 이전 {{httpmethod("GET")}} 메서드의 응답을 유효하지 않다고 표시할 경우, 새로운 <code>GET</code> 요청을 생성하지 않더라도 캐시를 무효화합니다.</p>
<table class="properties">
<tbody>
<tr>
<th scope="row">요청에 본문 존재</th>
<td>아니오</td>
</tr>
<tr>
<th scope="row">성공 응답에 본문 존재</th>
<td>아니오</td>
</tr>
<tr>
<th scope="row">{{Glossary("Safe", "안전함")}}</th>
<td>예</td>
</tr>
<tr>
<th scope="row">{{Glossary("Idempotent", "멱등성")}}</th>
<td>예</td>
</tr>
<tr>
<th scope="row">{{Glossary("Cacheable", "캐시 가능")}}</th>
<td>예</td>
</tr>
<tr>
<th scope="row">HTML 양식에서 사용 가능</th>
<td>아니오</td>
</tr>
</tbody>
</table>
<h2 id="구문">구문</h2>
<pre class="syntaxbox">HEAD /index.html
</pre>
<h2 id="명세">명세</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Title</th>
</tr>
<tr>
<td>{{RFC("7231", "HEAD", "4.3.2")}}</td>
<td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
</tr>
</tbody>
</table>
<h2 id="브라우저_호환성">브라우저 호환성</h2>
<p>{{Compat("http.methods.HEAD")}}</p>
<h2 id="같이_보기">같이 보기</h2>
<ul>
<li>{{HTTPMethod("GET")}}</li>
</ul>
|