You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support using sockaddr_un scheme with Invoke-RestMethod. #8314
Support using "sockaddr_un" (AF_UNIX sockets) with Invoke-RestMethod.
Proposed technical implementation details
Example usage:
`Invoke-RestMethod sockaddr_un://var/run/docker.sock/containers/json
As far as I understand the socket layer should behave the same so no big changes in the code, except adding the scheme and address family option. I don't think this should affect Powershell code.
System.Uri will need to support new scheme, which obviously means changes in framework & core.
Activity
SteveL-MSFT commentedon Nov 19, 2018
If CoreFx supports this, we can support it. Until then, I don't think it makes sense to specialize it into the cmdlet.
tdaniely commentedon Nov 19, 2018
Actually I'm not sure if the dotnet people will go for this. The protocol is still HTTP. That the transport is different doesn't really matter.
With curl you do it like this:
curl -XGET --unix-socket /var/run/docker.sock http://localhost/containers/jsonSo maybe the answer isn't core support. Probably warrants some design discussion.
iSazonov commentedon Nov 20, 2018
It is not standard scheme and it is absent on Windows so I think we can close the issue.