]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: mention new field Transport.DialTLSContext
authorIan Lance Taylor <iant@golang.org>
Fri, 31 Jan 2020 03:10:53 +0000 (19:10 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 31 Jan 2020 05:49:33 +0000 (05:49 +0000)
Updates #21526
Updates #36878

Change-Id: Ic3ae18d31eddb9df01241cbddcc3b7b750cfaa44
Reviewed-on: https://go-review.googlesource.com/c/go/+/217130
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.14.html

index f66582f1808bf279f1515c41c6af1fd3c4b17aa8..e072bc675e978a9b1ac8608eed80ffe3cc8a624f 100644 (file)
@@ -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 -->