Re: [whatwg/url] Addressing HTTP servers over Unix domain sockets (#577)

> Alternatively, you could try to get uds or socket as reserved TLDs, but I'm not sure how you'd go about doing that.

You ask the IETF, just like `.onion` did. Admittedly, there are some politics involved, but it's possible, and this is a pretty clearly technical use case. The backstop would be to use a subdomain of `.arpa`.

Personally, I'd go with something like:

> http://%2Ftmp%2Fmysock.uds/foo/bar

Yes, the escaping is ugly, but it's much cleaner than overloading IPV6 in URLs. Alternatively, you might be able to get away with:

> http://tmp.mysock.uds/foo/bar


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/577#issuecomment-968496984

Received on Monday, 15 November 2021 03:09:39 UTC