- Fixes
std.http.Client.connectUnix - Adds
http+unixscheme to allow passing percent encoded socket paths directly tostd.http.Client.request. This is not standardized afaik, but the precedent is there in the form of python'srequests-unixsocketorhttpie. A way to differentiate between TCP and Unix URIs is needed in any case to properly handle HTTP redirects. - Runs subset of HTTP tests over unix sockets
- Additionally fixes a somewhat related issue in
libstd.Io.Threaded.addressUnixToPosix, where it would add an extra null byte at the end of an abstract socket path, leading to confusing connection errors
Closes #31135
* Fixes `std.http.Client.connectUnix`
* Adds `http+unix` scheme to allow passing percent encoded socket paths directly to `std.http.Client.request`. This is not standardized afaik, but the precedent is there in the form of python's `requests-unixsocket` or `httpie`. A way to differentiate between TCP and Unix URIs is needed in any case to properly handle HTTP redirects.
* Runs subset of HTTP tests over unix sockets
* Additionally fixes a somewhat related issue in `libstd.Io.Threaded.addressUnixToPosix`, where it would add an extra null byte at the end of an abstract socket path, leading to confusing connection errors
Closes #31135