A Tokio aware, HTTP/2 client & server implementation for Rust.
More information about this crate can be found in the crate documentation.
- Client and server HTTP/2 implementation.
- Implements the full HTTP/2 specification.
- Passes h2spec.
- Focus on performance and correctness.
- Pseudo-header permutation for headers frame
- Experimental and permuted settings frame
- Priority frame (client-side only)
- Built on Tokio.
To use http2, first add this to your Cargo.toml:
[dependencies]
http2 = "0.5"Next, add this to your crate:
use http2::client::Connection;
fn main() {
// ...
}Licensed under either of Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
The project is based on a fork of h2.