http icon indicating copy to clipboard operation
http copied to clipboard

Support UNIX sockets

Open ixti opened this issue 5 months ago • 0 comments

It would be nice to be able to connect to HTTP servers via UNIX socket (e.g. docker.sock). It's mostly interesting for healthcheckers and similar utility type usage. API can be similar to Python's request-unixsocket:

HTTP.get("http+unix://%2Fvar%2Frun%2Fdocker.sock/info")

Alternative API can be similar to cURL:

HTTP.unix_socket("/var/run/docker.sock").get("http://literally-anything-as-host/info")

ixti avatar Jun 30 '25 14:06 ixti