What is h2 and what are its limitations?
masterH2 is a Tokio-aware HTTP/2 client and server implementation for Rust that focuses on performance and correctness. It implements the full HTTP/2 specification and passes h2spec.
Important: Scope of Responsibility
h2 is strictly an implementation of the HTTP/2 protocol. It does not handle:
- Managing TCP connections
- HTTP 1.0 upgrades
- TLS (Transport Layer Security)
- Any feature not explicitly described by the HTTP/2 specification.
For a complete HTTP stack including TCP and TLS, use hyper, which uses h2 as its HTTP/2 engine.