Dillo RFC 003 – Unix sockets in URLs
dillo-browser.github.io
dillo-browser.github.io
It allows protocols other than HTTP to talk to the socket, like Gemini or Gopher.
unix:///tmp/my.sock echo 'unix:/tmp/my.sock weather.unix' >> ~/.config/unix.hosts
dillo http://weather.unix/today/ http://<unix:///tmp/my.sock>/foo/bar.html?good=yes
To avoid the nesting of protocols, I think it is cleaner to give it a name and define the socket path elsewhere.First, it is easier and shorter to type and remember, as the path to the socket can be long. Second, multiple users may run a given service in a socket located at different paths. And third, using a host name can be used to create virtual hosts, so you can serve different responses to foo.unix and bar.unix while both point to the same server UNIX socket.
If you see a problem with using a host file, could to provide an example of how it could go wrong?