From: Emmanuel T Odeke
Date: Thu, 1 Aug 2019 01:14:56 +0000 (-0700)
Subject: doc/go1.13: document net/http.Transport.Request.Body unfurling
X-Git-Tag: go1.13rc1~45
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bdea352b96c6934ee49920b18c3b8aedffd27d08;p=gostls13.git
doc/go1.13: document net/http.Transport.Request.Body unfurling
Documents the work from:
* CL 163599
* CL 163737
which now uses the Request.Body's io.ReaderFrom implementation,
if available, and permits system level optimizations such as
"sendfile" to be used to transmit/upload the Body, which greatly
speeds up file uploads.
Updates #33396
Change-Id: I7b8315c4b3e57ad47bb9be2b0c838857875d4bd5
Reviewed-on: https://go-review.googlesource.com/c/go/+/188457
Reviewed-by: Andrew Bonventre
---
diff --git a/doc/go1.13.html b/doc/go1.13.html
index f7a6aaefbd..c79a76f4b8 100644
--- a/doc/go1.13.html
+++ b/doc/go1.13.html
@@ -740,6 +740,11 @@ godoc
The StatusCode
103
"Early Hints"
has been added.
+
+ Transport
now uses the Request.Body
's
+ io.ReaderFrom
implementation if available, to optimize writing the body.
+
+
On encountering unsupported transfer-encodings, http.Server
now
returns a "501 Unimplemented" status as mandated by the HTTP specification RFC 7230 Section 3.3.1.