http_unix_client

Crates.iohttp_unix_client
lib.rshttp_unix_client
version0.1.0
created_at2025-07-28 07:34:24.08792+00
updated_at2025-07-28 07:34:24.08792+00
descriptionA minimal async HTTP client over Unix sockets, inspired by reqwest
homepage
repositoryhttps://github.com/edgar-linton/http_unix_client
max_upload_size
id1770801
size108,046
(edgar-linton)

documentation

https://docs.rs/http_unix_client

README

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.

Commit count: 0

cargo fmt