#http2 #hyper #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

#4 in #h2

Download history 258/week @ 2024-07-20 371/week @ 2024-07-27 320/week @ 2024-08-03 243/week @ 2024-08-10 315/week @ 2024-08-17 295/week @ 2024-08-24 308/week @ 2024-08-31 190/week @ 2024-09-07 179/week @ 2024-09-14 256/week @ 2024-09-21 170/week @ 2024-09-28 187/week @ 2024-10-05 197/week @ 2024-10-12 272/week @ 2024-10-19 155/week @ 2024-10-26 227/week @ 2024-11-02

884 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–25MB
~438K SLoC