Unix Socket
If you want to access via a specific unix socket instead of TCP, use Client.SetUnixSocket
:
client := req.C()
client.SetUnixSocket("/var/run/custom.sock")
client.SetBaseURL("http://example.local")
resp, err := client.R().Get("/index.html")