From: Ian Lance Taylor
Date: Fri, 31 Jan 2020 03:10:53 +0000 (-0800)
Subject: doc/go1.14: mention new field Transport.DialTLSContext
X-Git-Tag: go1.14rc1~29
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4fda21bce194966b2ba018fbacb7045cb50c67db;p=gostls13.git
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
---
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.
+
+
+ The
+ new Transport
+ field DialTLSContext
+ 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 DialTLS
,
+ which is now considered deprecated; DialTLS
will
+ continue to work, but new code should
+ use DialTLSContext
, which allows the transport to
+ cancel dials as soon as they are no longer needed.
+