diff options
author | Emmanuel T Odeke <emmanuel@orijtech.com> | 2019-07-31 18:14:56 -0700 |
---|---|---|
committer | Emmanuel Odeke <emm.odeke@gmail.com> | 2019-08-02 17:58:08 +0000 |
commit | bdea352b96c6934ee49920b18c3b8aedffd27d08 (patch) | |
tree | acf867dfa3bb8aa5cc78fee38acdea1a0177d099 | |
parent | 0e54d28ff7ff63450356811b675a02e0afe610d6 (diff) | |
download | go-bdea352b96c6934ee49920b18c3b8aedffd27d08.tar.gz go-bdea352b96c6934ee49920b18c3b8aedffd27d08.zip |
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 <andybons@golang.org>
-rw-r--r-- | doc/go1.13.html | 5 |
1 files changed, 5 insertions, 0 deletions
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 <code>StatusCode</code> <code>103</code> <code>"Early Hints"</code> has been added. </p> + <p><!-- CL 163599 --> + <a href="/pkg/net/http/#Transport"><code>Transport</code></a> now uses the <a href="/pkg/net/http/#Request.Body"><code>Request.Body</code></a>'s + <a href="/pkg/io/#ReaderFrom"><code>io.ReaderFrom</code></a> implementation if available, to optimize writing the body. + </p> + <p><!-- CL 167017 --> On encountering unsupported transfer-encodings, <a href="/pkg/net/http/#Server"><code>http.Server</code></a> now returns a "501 Unimplemented" status as mandated by the HTTP specification <a href="https://tools.ietf.org/html/rfc7230#section-3.3.1">RFC 7230 Section 3.3.1</a>. |