[][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

Receiverunstable

The receiving half of a channel to send an upgraded connection.

Senderunstable

The sending half of a channel to send an upgraded connection.

Type Definitions

Connectionunstable

A boxed upgraded HTTP connection.