Le code de réponse HTTP 101 Switching Protocol
indique que le protocole a changé, comme demandé par le client via l'en-tête Upgrade
.
Le serveur envoie alors une réponse avec un en-tête Upgrade
qui indique le nouveau protocole utilisé.
Statut
101 Switching Protocol
Exemples
Les changements de protocole peuvent être utilisés avec WebSockets.
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade
Spécifications
Spécification | Titre |
---|---|
RFC 7231, section 6.2.2: 101 Switching Protocol | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
Voir aussi
- WebSockets
Upgrade
426
Upgrade Required