Miscellaneous · Request & Response
Upgrade
Requests a protocol upgrade (e.g. HTTP → WebSocket).
What is Upgrade?
The classic mechanism for switching protocols on an existing connection — most importantly HTTP/1.1 to WebSocket via `Upgrade: websocket`. Server responds with 101 Switching Protocols.
Typical usage
Set on WebSocket handshake requests.
Examples
Upgrade: websocketSpecification
RFC 9110 §7.8
Frequently asked questions
What is the Upgrade HTTP header?
The classic mechanism for switching protocols on an existing connection — most importantly HTTP/1.1 to WebSocket via `Upgrade: websocket`. Server responds with 101 Switching Protocols.
Is Upgrade a request or response header?
Upgrade can appear on both requests and responses. Set on WebSocket handshake requests.
What does a Upgrade header look like?
A typical Upgrade header looks like: Upgrade: websocket.