From 4fda21bce194966b2ba018fbacb7045cb50c67db Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 30 Jan 2020 19:10:53 -0800 Subject: [PATCH] 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 --- doc/go1.14.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. +

-- 2.50.0