| Crates.io | http_unix_client |
| lib.rs | http_unix_client |
| version | 0.1.0 |
| created_at | 2025-07-28 07:34:24.08792+00 |
| updated_at | 2025-07-28 07:34:24.08792+00 |
| description | A minimal async HTTP client over Unix sockets, inspired by reqwest |
| homepage | |
| repository | https://github.com/edgar-linton/http_unix_client |
| max_upload_size | |
| id | 1770801 |
| size | 108,046 |
Async HTTP client over Unix domain sockets – lightweight, fast, and built on [
hyper].
unix_http_client is an asynchronous HTTP client for communicating with local HTTP servers over Unix domain sockets.
Inspired by the [reqwest] API, but tailored for inter-process communication (IPC) on Unix-based systems.
🌀 Currently async-only — blocking support like
reqwest::blockingis not yet implemented.
use unix_http_client::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new();
let response = client
.get("/tmp/my.socket", "/health")
.send()
.await?;
println!("Status: {}", response.status());
Ok(())
}
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.