From cf10e69f17a202499aed8de6dd08f9642ab61b53 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
Date: Thu, 21 Jan 2021 18:10:47 -0800
Subject: [PATCH] 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
---
doc/go1.16.html | 13 +++++++++++++
1 file changed, 13 insertions(+)
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
--
2.50.0