mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
doc/go1.18: add net/http.MaxBytesHandler
This commit is contained in:
parent
c5fee935bb
commit
f3c2f12c7b
|
@ -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 -->
|
||||
|
||||
|
|
Loading…
Reference in a new issue