From: Craig Citro Date: Fri, 27 Jul 2018 20:39:49 +0000 (-0700) Subject: net/http: document Transport.Proxy's https support X-Git-Tag: go1.11beta3~74 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8450fd96779cc9e269f8a083a7f163bb1d7dbd39;p=gostls13.git net/http: document Transport.Proxy's https support The net/http module added support for HTTPS proxies in CL 68550, but the Transport.Proxy docstring was never updated to reflect this. This (doc-only) update adds "https" to the list of supported schemes. Change-Id: I0570fcdae8232bb42d52c4dd739dd09ee8dfd612 Reviewed-on: https://go-review.googlesource.com/126495 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/http/transport.go b/src/net/http/transport.go index 28469f2d82..40947baf87 100644 --- a/src/net/http/transport.go +++ b/src/net/http/transport.go @@ -121,8 +121,8 @@ type Transport struct { // Request. If the function returns a non-nil error, the // request is aborted with the provided error. // - // The proxy type is determined by the URL scheme. "http" - // and "socks5" are supported. If the scheme is empty, + // The proxy type is determined by the URL scheme. "http", + // "https", and "socks5" are supported. If the scheme is empty, // "http" is assumed. // // If Proxy is nil or returns a nil *URL, no proxy is used.