| What it is | An ergonomic, batteries-included HTTP Client for Rust. | A protective and efficient HTTP library for all. | The practical HTTP client that is fun to use. | A simple, safe HTTP client |
| Features | - async and blocking clients
- JSON, urlencoded and multipart bodies
- customizable redirect policy
- HTTP proxies
- native TLS or rustls
- cookie store
- custom DNS resolvers
- WASM
| - client and server APIs
- HTTP/1 and HTTP/2
- asynchronous design with non-blocking sockets
- Cargo features for client, server, http1 and http2
- unstable C API through the ffi feature
- unstable tracing support
- guides for clients and servers on hyper.rs
| - HTTP/1.1 and HTTP/2
- synchronous API and runtime-agnostic async API
- connection multiplexing, incremental body reading and writing
- configurable timeouts and redirect policies
- Unix sockets
- sessions and cookie persistence
- cancellation on drop
- http crate request and response types
- All 9 features
| - pure Rust, forbids unsafe code
- blocking I/O, no async runtime
- Agent with connection pooling and an optional cookie store
- rustls (default) or native-tls
- webpki roots or the platform certificate verifier
- JSON via serde, multipart forms, form encoding
- gzip and brotli decompression, charset decoding
- HTTP CONNECT and SOCKS4/5 proxies, proxy environment variables
- All 11 features
|
| Limitations | | - Doesn't provide a convenient high-level HTTP client: it's a low-level building block, and its README points to reqwest
- Doesn't support HTTP/3 yet: HTTP/1 and HTTP/2 only, with HTTP/3 in the works
| - Doesn't compile to WebAssembly: the README says it probably won't work for WASM projects
- Doesn't suit apps where tiny binary size matters: its async core adds size, and the README suggests ureq
- Doesn't support protocols other than HTTP: other protocols are a stated non-goal
| - Doesn't offer an async API: it uses blocking I/O to keep the API simple and dependencies few
|