http-request
Sync & Async HTTP/1.1 + HTTP/2 Client
Overview
Ergonomic HTTP client supporting reusable [HttpClient] instances (keep-alive pooling enabled by default, base URL resolution, default headers, Bearer/Basic auth, timeouts, retries, proxies, and custom PEM roots) alongside per-request [RequestBuilder] helpers (send, send_async, try_body_json, multipart/form uploads) and [HttpResponse] inspection methods (error_for_status, content_type, content_length, location, text_strict, set_cookies).
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— Reusable [HttpClient] and [HttpClientBuilder] with shared connection pooling, base URLs, default headers, auth helpers, timeouts, retries, proxies, and custom rootsrequest/pool/protocol/tls— Sync and Tokio-async HTTP/1.1 + HTTP/2 transports, 16-stripe keep-alive pools, RFC 9110/3986 redirect handling with credential stripping, and single-pass chunked/compressed decodingresponse— [HttpResponse] wire parser, zero-copy in-place decoding, multi-Set-Cookiepreservation, and typed body/header helpers
Installation
Verification
Run crate-scoped formatting, lint, and test gates from the workspace root:
Documentation & Governance
- Update this
README.mdalongside any public API, plugin contract, or module-boundary change. - Project standards and release workflows live in
../.agents/skills/hyperlane/SKILL.md.
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.