Expand description
HTTP protocol upgrades.
In HTTP it’s not uncommon to convert from one protocol to another. For
example HTTP/1.1
can upgrade a connection to websockets using the
upgrade header,
while HTTP/2
uses a custom
handshake. Regardless of
the HTTP version, changing protocols always involves some handshake,
after which it is turned into a stream of bytes. This module provides
primitives for upgrading from HTTP request-response pairs to alternate
protocols.
Structs§
- An upgraded HTTP connection.
- The receiving half of a channel to send an upgraded connection.
- The sending half of a channel to send an upgraded connection.