doc/go1.18: add net/http.MaxBytesHandler

For #47694

Change-Id: Ifab2c2720ec2ccef175a0e14a95f8df0437eb009
GitHub-Last-Rev: f3c2f12c7b
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>
This commit is contained in:
Carl Johnson 2021-12-18 02:54:22 +00:00 committed by Emmanuel Odeke
parent 3fb17cfd17
commit ebac50e9ce
1 changed files with 8 additions and 0 deletions

View 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 -->