#hyper #http2 #alpn #h2 #hyper-client

hyper-alpn

An ALPN implementation to be used with Hyper 0.12

17 releases

0.4.1 Jun 5, 2023
0.4.0 Aug 15, 2022
0.3.0 Feb 6, 2021
0.2.1 Dec 16, 2019
0.1.4 Jun 28, 2018

#6 in #h2

Download history 393/week @ 2024-02-26 376/week @ 2024-03-04 403/week @ 2024-03-11 346/week @ 2024-03-18 350/week @ 2024-03-25 361/week @ 2024-04-01 377/week @ 2024-04-08 545/week @ 2024-04-15 534/week @ 2024-04-22 383/week @ 2024-04-29 389/week @ 2024-05-06 253/week @ 2024-05-13 261/week @ 2024-05-20 400/week @ 2024-05-27 272/week @ 2024-06-03 243/week @ 2024-06-10

1,189 downloads per month
Used in 2 crates (via rustdns)

MIT license

14KB
212 lines

hyper-alpn

CI Status MIT licensed crates.io

Provides an ALPN connector to be used together with hyper.

Documentation

Requirements

Needs a Tokio executor version 1 or later and Rust compiler version 1.56.0 or later.


lib.rs:

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());
}

Dependencies

~14–28MB
~446K SLoC