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
884 downloads per month
Used in 2 crates
(via rustdns)
14KB
212 lines
hyper-alpn
Provides an ALPN connector to be used together with hyper.
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