Expand description
Handing a connection over to another protocol.
HTTP/1.1 lets a client ask to stop speaking HTTP and start speaking
something else — that is how WebSocket begins. A handler answers 101 and
attaches an Upgrade; the server then stops managing the socket and hands
it over.
Structs§
- Upgraded
- The socket, after HTTP is finished with it.
Traits§
- Upgrade
- What takes over the connection.
Type Aliases§
- Upgrader
- An upgrade attached to a response, shared so the response stays cloneable.