We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34ab421 commit 75ab613Copy full SHA for 75ab613
src/net/http/transport.go
@@ -89,6 +89,11 @@ type Transport struct {
89
// Proxy specifies a function to return a proxy for a given
90
// Request. If the function returns a non-nil error, the
91
// request is aborted with the provided error.
92
+ //
93
+ // The proxy type is determined by the URL scheme. "http"
94
+ // and "socks5" are supported. If the scheme is empty,
95
+ // "http" is assumed.
96
97
// If Proxy is nil or returns a nil *URL, no proxy is used.
98
Proxy func(*Request) (*url.URL, error)
99
0 commit comments