http-request 23.0.0

http-request is a lightweight, efficient library for building, sending, and handling HTTP/HTTPS requests in Rust applications. It provides a simple and intuitive API, allowing developers to easily interact with web services, whether they use the "HTTP" or "HTTPS" protocol. The library supports various HTTP methods, custom headers, request bodies, timeout, automatic handling of redirects (including detecting redirect loops), and enhanced response body decoding (both automatic and manual), enabling fast and secure communication. Whether working with secure "HTTPS" connections or standard "HTTP" requests, the library is optimized for performance, minimal resource usage, and easy integration into Rust projects.
Documentation

http-request

Sync & Async HTTP/1.1 + HTTP/2 Client

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Ergonomic HTTP client supporting opt-in keep-alive pooling, TLS session resumption, custom PEM roots, bounded retries, multipart/form uploads, and HTTP/SOCKS5 proxies.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • client / pool / tls — Sync and Tokio-async HTTP/1.1 + HTTP/2 transports with redirect credential stripping

Installation

cargo add http-request

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p http-request --all-features --all-targets -- -D warnings
cargo test -p http-request --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.