(req *http.Request)
| 115 | } |
| 116 | |
| 117 | func (t *userAgentTransport) RoundTrip(req *http.Request) (*http.Response, error) { |
| 118 | req.Header.Set("User-Agent", t.userAgent) |
| 119 | return t.base.RoundTrip(req) |
| 120 | } |
| 121 | |
| 122 | func handleUnixDomainSocket(socketPath string) http.RoundTripper { |
| 123 | if socketPath == "" { |