From ebac50e9cef66920ecfe018252ffdc2294a0c249 Mon Sep 17 00:00:00 2001
From: Carl Johnson
Date: Sat, 18 Dec 2021 02:54:22 +0000
Subject: [PATCH] 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
---
doc/go1.18.html | 8 ++++++++
1 file changed, 8 insertions(+)
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
.
+
--
2.48.1