File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -540,6 +540,20 @@ <h2 id="library">Core library</h2>
540
540
can be used to fetch all values associated with a
541
541
canonicalized key.
542
542
</ 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 >
543
557
</ dd >
544
558
</ dl > <!-- net/http -->
545
559
You can’t perform that action at this time.
0 commit comments