HTTP client for UNIX sockets without tokio

Is there any simple HTTP client library for Rust which supports UNIX sockets, and does not use tokio or any similar complicated frameworks?

I have tried hyperlocal, but the dependency on tokio makes things overly complicated. I don't need async features.

My use case is communicating with a Docker daemon.

Have you tried

I had a look at it, and as far as I can see, it does not support UNIX sockets. Please correct me if I am wrong.

Maybe docker-api would help?

There are curated are we XY crates sites set up such as which might be helpful.

I ended up implementing it myself using std::os::unix::net::UnixStream with some help from httparse.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.