From d6d0fec43d1770f460fdbc960996b2820ee11694 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Tue, 6 Jun 2023 14:19:45 -0700 Subject: [PATCH] go1.21: document net/http.ResponseController.EnableFullDuplex For #15527 For #57786 Change-Id: I75ed0b4bac8e31fac2afef17dad708dc9a3d74e1 Reviewed-on: https://go-review.googlesource.com/c/go/+/501300 Run-TryBot: Damien Neil Auto-Submit: Damien Neil TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- doc/go1.21.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/go1.21.html b/doc/go1.21.html index f7ffc19117..daaa3444b7 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -740,12 +740,18 @@ Do not send CLs removing the interior tags from such phrases.
net/http
-

- The new ErrSchemeMismatch error is returned by Client and Transport when the server responds to an HTTPS request with an HTTP response. +

+ The new ResponseController.EnableFullDuplex + method allows server handlers to concurrently read from an HTTP/1 + request body while writing the response. Normally, the HTTP/1 server + automatically consumes any remaining request body before starting to + write the response, to avoid deadlocking clients which attempt to + write a complete request before reading the response. The + EnableFullDuplex method disables this behavior.

-

- TODO: https://go.dev/cl/472636: net/http: support full-duplex HTTP/1 responses; modified api/next/57786.txt +

+ The new ErrSchemeMismatch error is returned by Client and Transport when the server responds to an HTTPS request with an HTTP response.

-- 2.44.0