17个版本

0.4.1 2023年6月5日
0.4.0 2022年8月15日
0.3.0 2021年2月6日
0.2.1 2019年12月16日
0.1.4 2018年6月28日

#1110网络编程

Download history • Rust 包仓库 386/week @ 2024-03-13 • Rust 包仓库 388/week @ 2024-03-20 • Rust 包仓库 290/week @ 2024-03-27 • Rust 包仓库 405/week @ 2024-04-03 • Rust 包仓库 380/week @ 2024-04-10 • Rust 包仓库 605/week @ 2024-04-17 • Rust 包仓库 526/week @ 2024-04-24 • Rust 包仓库 331/week @ 2024-05-01 • Rust 包仓库 343/week @ 2024-05-08 • Rust 包仓库 214/week @ 2024-05-15 • Rust 包仓库 312/week @ 2024-05-22 • Rust 包仓库 340/week @ 2024-05-29 • Rust 包仓库 304/week @ 2024-06-05 • Rust 包仓库 228/week @ 2024-06-12 • Rust 包仓库 192/week @ 2024-06-19 • Rust 包仓库 99/week @ 2024-06-26 • Rust 包仓库

856 每月下载量
用于 2 个crate(通过 rustdns

MIT 协议

14KB
212

hyper-alpn

CI Status MIT licensed crates.io

提供与hyper一起使用的ALPN连接器。

文档

要求

需要Tokio执行器版本1或更高版本和Rust编译器版本1.56.0或更高版本。


lib.rs:

hyper-alpn

用于hyper的Alpn连接器。

示例

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

依赖项

~14–28MB
~449K SLoC