diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-01-30 19:10:53 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-01-31 05:49:33 +0000 |
commit | 4fda21bce194966b2ba018fbacb7045cb50c67db (patch) | |
tree | 307b7fbbd5157cf4012948f3de03812c5bcf76fe | |
parent | debc52038b1ae8bab4d6d901d07e5f6f3397e029 (diff) | |
download | go-4fda21bce194966b2ba018fbacb7045cb50c67db.tar.gz go-4fda21bce194966b2ba018fbacb7045cb50c67db.zip |
doc/go1.14: mention new field Transport.DialTLSContext
Updates #21526
Updates #36878
Change-Id: Ic3ae18d31eddb9df01241cbddcc3b7b750cfaa44
Reviewed-on: https://go-review.googlesource.com/c/go/+/217130
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r-- | doc/go1.14.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/go1.14.html b/doc/go1.14.html index f66582f180..e072bc675e 100644 --- a/doc/go1.14.html +++ b/doc/go1.14.html @@ -540,6 +540,20 @@ TODO can be used to fetch all values associated with a canonicalized key. </p> + + <p><!-- CL 61291 --> + The + new <a href="/pkg/net/http/#Transport"><code>Transport</code></a> + field <a href="/pkg/net/http/#Transport.DialTLSContext"><code>DialTLSContext</code></a> + can be used to specify an optional dial function for creating + TLS connections for non-proxied HTTPS requests. + This new field can be used instead + of <a href="/pkg/net/http/#Transport.DialTLS"><code>DialTLS</code></a>, + which is now considered deprecated; <code>DialTLS</code> will + continue to work, but new code should + use <code>DialTLSContext</code>, which allows the transport to + cancel dials as soon as they are no longer needed. + </p> </dd> </dl><!-- net/http --> |