From: Damien Neil Date: Tue, 6 Jun 2023 21:19:45 +0000 (-0700) Subject: go1.21: document net/http.ResponseController.EnableFullDuplex X-Git-Tag: go1.21rc1~74 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=d6d0fec43d1770f460fdbc960996b2820ee11694;p=gostls13.git 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 --- 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.