http_types/upgrade/mod.rs
1//! HTTP protocol upgrades.
2//!
3//! In HTTP it's not uncommon to convert from one protocol to another. For
4//! example `HTTP/1.1` can upgrade a connection to websockets using the
5//! [upgrade header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism),
6//! while `HTTP/2` uses [a custom
7//! handshake](https://tools.ietf.org/html/rfc8441#section-5.1). Regardless of
8//! the HTTP version, changing protocols always involves some handshake,
9//! after which it is turned into a stream of bytes. This module provides
10//! primitives for upgrading from HTTP request-response pairs to alternate
11//! protocols.
12
13mod connection;
14mod receiver;
15mod sender;
16
17pub use connection::Connection;
18pub use receiver::Receiver;
19pub use sender::Sender;