I want to a HTTP request over a UNIX socket, like the following example using curl and docker:
$ curl --unix-socket /var/run/docker.sock http://localhost/images/json
[
{
"Containers": -1,
"Created": 1577395270,
"Id": "sha256:ce6c1e7ac56533e2742030f033cf0d8cf0adc996c7bb87453eb5adc266b2ef2e",
"Labels": null,
"ParentId": "",
"RepoDigests": [
"busybox@sha256:7fe0cb3632d9ea7b2a9ab4427e339e01f7cdfeff50674804cb8946664976c610"
],
"RepoTags": [
"busybox:musl"
],
"SharedSize": -1,
"Size": 1461385,
"VirtualSize": 1461385
}
]
As far as I've seen, clj-http doesn't seem to support this.
What would be a recommended/idiomatic way of doing this in Clojure?