From: Ian Lance Taylor Date: Fri, 22 Jan 2021 02:10:47 +0000 (-0800) Subject: doc/go1.16: mention net/http.Transport.GetProxyConnectHeader X-Git-Tag: go1.16rc1~41 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cf10e69f17;p=gostls13.git doc/go1.16: mention net/http.Transport.GetProxyConnectHeader For #40700 For #41048 Change-Id: Ida6bcaaf5edaa2bba9ba2b8e02ec9959481f8302 Reviewed-on: https://go-review.googlesource.com/c/go/+/285594 Trust: Ian Lance Taylor Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/go1.16.html b/doc/go1.16.html index b3166fbaf5..d7714888f2 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -807,6 +807,19 @@ func TestFoo(t *testing.T) { HTTPS_PROXY is unset.

+

+ The Transport + type has a new field + GetProxyConnectHeader + which may be set to a function that returns headers to send to a + proxy during a CONNECT request. + In effect GetProxyConnectHeader is a dynamic + version of the existing field + ProxyConnectHeader; + if GetProxyConnectHeader is not nil, + then ProxyConnectHeader is ignored. +

+

The new http.FS function converts an fs.FS