Skip to content

Commit

Permalink
doc/go1.18: add net/http.MaxBytesHandler
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Emmanuel Odeke <[email protected]>
  • Loading branch information
earthboundkid authored and odeke-em committed Dec 21, 2021
1 parent 3fb17cf commit ebac50e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/go1.18.html
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,14 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<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 -->

Expand Down

0 comments on commit ebac50e

Please sign in to comment.