Crate hyper_alpn

Source
Expand description

§hyper-alpn

An Alpn connector to be used with hyper.

§Example

use hyper_alpn::AlpnConnector;
use hyper::Client;

fn main() {
    let mut builder = Client::builder();
    builder.http2_only(true);

    let client: Client<AlpnConnector> = builder.build(AlpnConnector::new());
}

Structs§

AlpnConnecting
AlpnConnector
Connector for Application-Layer Protocol Negotiation to form a TLS connection for Hyper.
AlpnStream