]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add net/http.MaxBytesHandler
authorCarl Johnson <me@carlmjohnson.net>
Sat, 18 Dec 2021 02:54:22 +0000 (02:54 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Tue, 21 Dec 2021 23:09:59 +0000 (23:09 +0000)
For #47694

Change-Id: Ifab2c2720ec2ccef175a0e14a95f8df0437eb009
GitHub-Last-Rev: f3c2f12c7b6472610428cff5cad2a4497c47150e
GitHub-Pull-Request: golang/go#50250
Reviewed-on: https://go-review.googlesource.com/c/go/+/373015
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
doc/go1.18.html

index 5f4cc591b75ed9094afa6764f02c427d3bc0f268..90bc0aa13255e39ffab59b62cc463ee2e1d2eda5 100644 (file)
@@ -713,6 +713,14 @@ Do not send CLs removing the interior tags from such phrases.
       <a href="/pkg/net/http#Cookie.Valid"><code>Cookie.Valid</code></a>
       method reports whether the cookie is valid.
     </p>
+
+    <p><!-- CL 346569 -->
+      The new
+      <a href="/pkg/net/http#MaxBytesHandler"><code>MaxBytesHandler</code></a>
+      function creates a <code>Handler</p>code> that wraps its
+      <code>ResponseWriter</code> and <code>Request.Body</code> with a
+      <a href="/pkg/net/http#MaxBytesReader"><code>MaxBytesReader</code></a>.
+    </p>
   </dd>
 </dl><!-- net/http -->