From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/http/status/101/index.html | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 files/pt-br/web/http/status/101/index.html (limited to 'files/pt-br/web/http/status/101/index.html') diff --git a/files/pt-br/web/http/status/101/index.html b/files/pt-br/web/http/status/101/index.html new file mode 100644 index 0000000000..1de9321d05 --- /dev/null +++ b/files/pt-br/web/http/status/101/index.html @@ -0,0 +1,46 @@ +--- +title: 101 Switching Protocols +slug: Web/HTTP/Status/101 +translation_of: Web/HTTP/Status/101 +--- +
{{HTTPSidebar}}
+ +

O código de resposta HTTP 101 Switching Protocols indica para qual protocolo o servidor está trocando, conforme solicitado por um cliente que tenha enviado uma mensagem incluindo {{HTTPHeader("Upgrade")}} no cabeçalho da requisição.
+
+ O servidor inclui {{HTTPHeader("Upgrade")}} no seu cabeçalho de resposta para indicar para qual protocolo o cliente foi redirecionado. O processo é descrito detalhadamente no artigo Protocol upgrade mechanism.

+ +

Status

+ +
101 Switching Protocols
+ +

Exemplos

+ +

Switching protocols pode ser usado para WebSockets.

+ +
HTTP/1.1 101 Switching Protocols
+Upgrade: websocket
+Connection: Upgrade
+ +

Especificações

+ + + + + + + + + + + + +
SpecificationTitle
{{RFC("7231", "101 Switching Protocol" , "6.2.2")}}Hypertext Transfer Protocol (HTTP/1.1): Semânticas e Conteúdos
+ +

Veja também

+ + -- cgit v1.2.3-54-g00ecf