mirror of https://github.com/golang/go.git
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:
parent
3fb17cfd17
commit
ebac50e9ce
|
|
@ -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 -->
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue