Rust HTTP implementation with client and server APIs, HTTP/1 and HTTP/2, and an async design for embedding in other programs.
Overview
Hyper is an HTTP library for the Rust language aimed at correctness, safety, and performance. It implements HTTP/1 and HTTP/2 and uses an asynchronous, non-blocking design suited to high concurrency over sockets.
The library exposes separate client APIs for talking to remote web services and server APIs for building HTTP services. It is intentionally low level: it works as a building block for higher-level clients and frameworks rather than as a full application stack on its own.
Hyper enforces correct HTTP usage where feasible, stays focused on HTTP rather than prescribing application structure, and is widely used in production settings. HTTP/3 support is in development.
Key features
- HTTP/1 and HTTP/2 support
- Asynchronous client and server APIs
- Non-blocking socket I/O
- Low-level building-block design
- Memory-safe Rust implementation
- Correctness-focused HTTP handling
- Suitable for custom servers and clients
- Extensive production use
Use cases
- Building custom HTTP servers in Rust
- Implementing HTTP clients in libraries
- Foundation for web frameworks such as axum
- High-concurrency network services
- Embedding HTTP in Rust applications