aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-01-21 18:10:47 -0800
committerIan Lance Taylor <iant@golang.org>2021-01-22 06:35:43 +0000
commitcf10e69f17a202499aed8de6dd08f9642ab61b53 (patch)
treed9d777a770ce01ec8363bb1c9bfdf203a868a78a /doc
parentec1b9452658dfa6ca865a9dd2711726ab71de99c (diff)
downloadgo-cf10e69f17a202499aed8de6dd08f9642ab61b53.tar.gz
go-cf10e69f17a202499aed8de6dd08f9642ab61b53.zip
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 <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.16.html13
1 files changed, 13 insertions, 0 deletions
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) {
<code>HTTPS_PROXY</code> is unset.
</p>
+ <p><!-- 259917 -->
+ The <a href="/pkg/net/http/#Transport"><code>Transport</code></a>
+ type has a new field
+ <a href="/pkg/net/http/#Transport.GetProxyConnectHeader"><code>GetProxyConnectHeader</code></a>
+ which may be set to a function that returns headers to send to a
+ proxy during a <code>CONNECT</code> request.
+ In effect <code>GetProxyConnectHeader</code> is a dynamic
+ version of the existing field
+ <a href="/pkg/net/http/#Transport.ProxyConnectHeader"><code>ProxyConnectHeader</code></a>;
+ if <code>GetProxyConnectHeader</code> is not <code>nil</code>,
+ then <code>ProxyConnectHeader</code> is ignored.
+ </p>
+
<p><!-- CL 243939 -->
The new <a href="/pkg/net/http/#FS"><code>http.FS</code></a>
function converts an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>