h2 (0.4.13)
Published 2026-03-26 10:58:37 +00:00 by siennathesane
Installation
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add h2@0.4.13About this package
An HTTP/2 client and server
H2
A Tokio aware, HTTP/2 client & server implementation for Rust.
More information about this crate can be found in the crate documentation.
Features
- Client and server HTTP/2 implementation.
- Implements the full HTTP/2 specification.
- Passes h2spec.
- Focus on performance and correctness.
- Built on Tokio.
Non goals
This crate is intended to only be an implementation of the HTTP/2 specification. It does not handle:
- Managing TCP connections
- HTTP 1.0 upgrade
- TLS
- Any feature not described by the HTTP/2 specification.
This crate is now used by hyper, which will provide all of these features.
Usage
To use h2, first add this to your Cargo.toml:
[dependencies]
h2 = "0.4"
Next, add this to your crate:
extern crate h2;
use h2::server::Connection;
fn main() {
// ...
}
FAQ
Is this an embedded Java SQL database engine?
No.
Dependencies
| ID | Version |
|---|---|
| atomic-waker | ^1.0.0 |
| bytes | ^1 |
| fnv | ^1.0.5 |
| futures-core | ^0.3 |
| futures-sink | ^0.3 |
| http | ^1 |
| indexmap | ^2 |
| slab | ^0.4.2 |
| tokio | ^1 |
| tokio-util | ^0.7.1 |
| tracing | ^0.1.35 |
| env_logger | ^0.10 |
| hex | ^0.4.3 |
| quickcheck | ^1.0.3 |
| rand | ^0.8.4 |
| serde | ^1.0.0 |
| serde_json | ^1.0.0 |
| tokio | ^1 |
| tokio-rustls | ^0.26 |
| walkdir | ^2.3.2 |
| webpki-roots | ^1 |
Keywords
http
async
non-blocking
Details
2026-03-26 10:58:37 +00:00
Assets (1)
Versions (1)
View all
Cargo
0
Carl Lerche <me@carllerche.com>
Sean McArthur <sean@seanmonstar.com>
MIT
171 KiB
h2-0.4.13.crate
171 KiB
0.4.13
2026-03-26