]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add docs on Cookie.Valid
authorJeremy Faller <jeremy@golang.org>
Wed, 1 Dec 2021 21:27:55 +0000 (16:27 -0500)
committerJeremy Faller <jeremy@golang.org>
Thu, 2 Dec 2021 22:04:23 +0000 (22:04 +0000)
Updates #47694

Change-Id: Ibf3e25fbccf82e4abd7bd76b2ea6ceb4b05d4664
Reviewed-on: https://go-review.googlesource.com/c/go/+/368357
Trust: Jeremy Faller <jeremy@golang.org>
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index fb4d03151e2dcd4d69f1a4d60ada59d81709856c..a142115c22c18cdd2030e0e47938bd7da0e9482f 100644 (file)
@@ -390,8 +390,11 @@ proposal</a>.
       <a href="/pkg/net/http/#Transport"><code>Transport</code></a>
       will now be correctly used, if specified, for making HTTP requests.
     </p>
+
     <p><!-- CL 338590 -->
-      TODO: <a href="https://golang.org/cl/338590">https://golang.org/cl/338590</a>: add Cookie.Valid method
+      The new
+      <a href="/pkg/net/http#Cookie.Valid"><code>Cookie.Valid</code></a>
+      method reports whether the cookie is valid.
     </p>
   </dd>
 </dl><!-- net/http -->