Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unix sockets #31

Closed
wojtekmach opened this issue Aug 10, 2021 · 1 comment
Closed

Support unix sockets #31

wojtekmach opened this issue Aug 10, 2021 · 1 comment

Comments

@wojtekmach
Copy link
Owner

wojtekmach commented Aug 10, 2021

Requires https://github.com/keathley/finch/issues/139 and #30

Curl allows to do:

$ curl --unix-socket /var/run/docker.sock http:///v1.41/_ping
OK

Let's support that in Req too:

iex> Req.get!("http:///v1.41/_ping", unix_socket: "/var/run/docker.sock").body
"OK"

maybe the url could even simply be: "/v1.41/_ping" and we'd default it to http + localhost.

@wojtekmach
Copy link
Owner Author

On main!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant