Skip to content

Commit cf10e69

Browse files
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 <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent ec1b945 commit cf10e69

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/go1.16.html

+13
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,19 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
807807
<code>HTTPS_PROXY</code> is unset.
808808
</p>
809809

810+
<p><!-- 259917 -->
811+
The <a href="/pkg/net/http/#Transport"><code>Transport</code></a>
812+
type has a new field
813+
<a href="/pkg/net/http/#Transport.GetProxyConnectHeader"><code>GetProxyConnectHeader</code></a>
814+
which may be set to a function that returns headers to send to a
815+
proxy during a <code>CONNECT</code> request.
816+
In effect <code>GetProxyConnectHeader</code> is a dynamic
817+
version of the existing field
818+
<a href="/pkg/net/http/#Transport.ProxyConnectHeader"><code>ProxyConnectHeader</code></a>;
819+
if <code>GetProxyConnectHeader</code> is not <code>nil</code>,
820+
then <code>ProxyConnectHeader</code> is ignored.
821+
</p>
822+
810823
<p><!-- CL 243939 -->
811824
The new <a href="/pkg/net/http/#FS"><code>http.FS</code></a>
812825
function converts an <a href="/pkg/io/fs/#FS"><code>fs.FS</code></a>

0 commit comments

Comments
 (0)