From: Carl Johnson
Date: Sat, 18 Dec 2021 02:54:22 +0000 (+0000)
Subject: doc/go1.18: add net/http.MaxBytesHandler
X-Git-Tag: go1.18beta2~190
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ebac50e9cef66920ecfe018252ffdc2294a0c249;p=gostls13.git
doc/go1.18: add net/http.MaxBytesHandler
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
Reviewed-by: Emmanuel Odeke
---
diff --git a/doc/go1.18.html b/doc/go1.18.html
index 5f4cc591b7..90bc0aa132 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -713,6 +713,14 @@ Do not send CLs removing the interior tags from such phrases.
Cookie.Valid
method reports whether the cookie is valid.
+
+
+ The new
+ MaxBytesHandler
+ function creates a Handler
code> that wraps its
+ ResponseWriter
and Request.Body
with a
+ MaxBytesReader
.
+