#hyper #http2 #h2 #alpn

hyper-alpn

An ALPN implementation to be used with Hyper 0.12

16 releases

Uses new Rust 2021

0.4.0 Aug 15, 2022
0.3.0 Feb 6, 2021
0.2.1 Dec 16, 2019
0.2.0-alpha.6 Nov 5, 2019
0.1.4 Jun 28, 2018

#196 in Development tools

Download history 490/week @ 2022-08-05 354/week @ 2022-08-12 516/week @ 2022-08-19 558/week @ 2022-08-26 789/week @ 2022-09-02 1322/week @ 2022-09-09 851/week @ 2022-09-16 1581/week @ 2022-09-23 1704/week @ 2022-09-30 1956/week @ 2022-10-07 1558/week @ 2022-10-14 1283/week @ 2022-10-21 1463/week @ 2022-10-28 1488/week @ 2022-11-04 1603/week @ 2022-11-11 1110/week @ 2022-11-18

5,905 downloads per month
Used in 3 crates (2 directly)

MIT license

13KB
213 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 0.2 or later and Rust compiler version 1.39.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

~12–19MB
~391K SLoC