From bdea352b96c6934ee49920b18c3b8aedffd27d08 Mon Sep 17 00:00:00 2001
From: Emmanuel T Odeke
Date: Wed, 31 Jul 2019 18:14:56 -0700
Subject: [PATCH] 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
---
doc/go1.13.html | 5 +++++
1 file changed, 5 insertions(+)
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.
--
2.50.0