aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/http/status/101/index.html
blob: 0b9c4556e5af1d3645fd9b7b5c6833843871cfe5 (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
---
title: 101 Switching Protocols
slug: Web/HTTP/Status/101
tags:
  - Códigos de estado
  - Estados
  - HTTP
  - HTTP Status Code
  - Información
  - Referencia
  - WebSockets
translation_of: Web/HTTP/Status/101
---
<div>{{HTTPSidebar}}</div>

<div>El código de respuesta <code><strong>101 Switching Protocols </strong></code> que el servidor está cambiando de protocolo al solicitado por un cliente que mandó un mensaje incluyendo la cabecera {{HTTPHeader("Upgrade")}}.</div>

<div> </div>

<p>El servidor incluye en esta respuesta una cabecera {{HTTPHeader("Upgrade")}} para indicar a qué protocolo ha cambiado. El proceso se describe en detalle en el artículo<a href="/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism"> Protocol upgrade mechanism</a>.</p>

<h2 id="Estado">Estado</h2>

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

<h2 id="Ejemplos">Ejemplos</h2>

<p>El cambio de protocolos se podría usar con <a href="/en-US/docs/Web/API/WebSockets_API">WebSockets</a>.</p>

<pre>HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade</pre>

<h2 id="Especificaciones">Especificaciones</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="Vea_también">Vea también</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>