aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/http/status/101/index.html
blob: 7402c1b43a93138101dcc455a263763930b6f82f (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
---
title: 101 Switching Protocols
slug: Web/HTTP/Status/101
tags:
  - HTTP
  - HTTP Status Code
  - Informational
  - Reference
  - WebSockets
translation_of: Web/HTTP/Status/101
---
<div>{{HTTPSidebar}}</div>

<p>HTTP <code><strong>101 Switching Protocols</strong></code>는 클라이언트가 {{HTTPHeader("Upgrade")}} 헤더를 통해 요청한 것에 따라 서버가 프로토콜을 바꾼다는 것을 알려주는 응답 코드입니다.</p>

<p>서버는 어떤 프로토콜로 바꾸는지를 응답의 {{HTTPHeader("Upgrade")}} 헤더에 담습니다. 구체적인 절차는 <a href="/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism">프로토콜 업데이트 메커니즘</a>에 기술되어 있습니다.</p>

<h2 id="상태">상태</h2>

<pre class="syntaxbox">101 Switching Protocols</pre>

<h2 id="예제">예제</h2>

<p><code><strong>101 Switching Protocols</strong></code><a href="/ko/docs/Web/API/WebSockets_API">WebSockets</a>와 함께 사용할 수 있습니다.</p>

<pre>HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade</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", "101 Switching Protocol" , "6.2.2")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
  </tr>
 </tbody>
</table>

<h2 id="같이_보기">같이 보기</h2>

<ul>
 <li><a href="/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism">Protocol upgrade mechanism</a></li>
 <li><a href="/en-US/docs/Web/API/WebSockets_API">WebSockets</a></li>
 <li>{{HTTPHeader("Upgrade")}}</li>
 <li>{{HTTPStatus("426")}} <code>Upgrade Required</code></li>
</ul>