http_unix_client 0.1.0

A minimal async HTTP client over Unix sockets, inspired by reqwest
Documentation

http_unix_client

Async HTTP client over Unix domain sockets – lightweight, fast, and built on [hyper].

Crates.io Documentation MIT/Apache-2.0 licensed


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::blocking is not yet implemented.


🚀 Example

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(())
}

License

Licensed under either of

Contribution

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.