Skip to content

Commit 4fda21b

Browse files
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 <[email protected]>
1 parent debc520 commit 4fda21b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/go1.14.html

+14
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,20 @@ <h2 id="library">Core library</h2>
540540
can be used to fetch all values associated with a
541541
canonicalized key.
542542
</p>
543+
544+
<p><!-- CL 61291 -->
545+
The
546+
new <a href="/pkg/net/http/#Transport"><code>Transport</code></a>
547+
field <a href="/pkg/net/http/#Transport.DialTLSContext"><code>DialTLSContext</code></a>
548+
can be used to specify an optional dial function for creating
549+
TLS connections for non-proxied HTTPS requests.
550+
This new field can be used instead
551+
of <a href="/pkg/net/http/#Transport.DialTLS"><code>DialTLS</code></a>,
552+
which is now considered deprecated; <code>DialTLS</code> will
553+
continue to work, but new code should
554+
use <code>DialTLSContext</code>, which allows the transport to
555+
cancel dials as soon as they are no longer needed.
556+
</p>
543557
</dd>
544558
</dl><!-- net/http -->
545559

0 commit comments

Comments
 (0)