[−][src]Module http_types::upgrade
This is supported on
unstable
only.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
Receiver | unstable The receiving half of a channel to send an upgraded connection. |
Sender | unstable The sending half of a channel to send an upgraded connection. |
Type Definitions
Connection | unstable A boxed upgraded HTTP connection. |