mirror of
https://github.com/golang/go
synced 2024-11-23 06:10:05 -07:00
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>
This commit is contained in:
parent
0e54d28ff7
commit
bdea352b96
@ -740,6 +740,11 @@ godoc
|
|||||||
The <code>StatusCode</code> <code>103</code> <code>"Early Hints"</code> has been added.
|
The <code>StatusCode</code> <code>103</code> <code>"Early Hints"</code> has been added.
|
||||||
</p>
|
</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 -->
|
<p><!-- CL 167017 -->
|
||||||
On encountering unsupported transfer-encodings, <a href="/pkg/net/http/#Server"><code>http.Server</code></a> now
|
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>.
|
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>.
|
||||||
|
Loading…
Reference in New Issue
Block a user