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

This commit is contained in:
Carl Johnson 2021-12-17 21:51:24 -05:00
parent c5fee935bb
commit f3c2f12c7b

View file

@ -701,6 +701,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 -->