From d6f6a46c0722e2e4565c5b146ab3012d9327efd1 Mon Sep 17 00:00:00 2001 From: Emmanuel T Odeke Date: Wed, 31 Jul 2019 19:18:32 -0700 Subject: [PATCH] doc/go1.13: add more release notes for net/http Fixes #33396 Change-Id: Id975a23b8d6555a3f19ef283fccbbe122f10acfe Reviewed-on: https://go-review.googlesource.com/c/go/+/188477 Reviewed-by: Andrew Bonventre --- doc/go1.13.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/doc/go1.13.html b/doc/go1.13.html index 7298f828896..f7a6aaefbdd 100644 --- a/doc/go1.13.html +++ b/doc/go1.13.html @@ -713,6 +713,13 @@ godoc
net/http
+

+ The new fields Transport.WriteBufferSize + and Transport.ReadBufferSize + allow one to specify the sizes of the write and read buffers for a Transport. + If either field is zero, a default size of 4KB is used. +

+

The new field Transport.ForceAttemptHTTP2 controls whether HTTP/2 is enabled when a non-zero Dial, DialTLS, or DialContext @@ -729,6 +736,15 @@ godoc Pusher and Flusher interfaces.

+

+ The StatusCode 103 "Early Hints" has been added. +

+ +

+ 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. +

+

The new Server fields BaseContext and @@ -736,11 +752,26 @@ godoc allow finer control over the Context values provided to requests and connections.

+

+ http.DetectContentType now correctly detects RAR signatures, and can now also detect RAR v5 signatures. +

+

The new Header method Clone returns a copy of the receiver.

+

+ A new function NewRequestWithContext has been added and it + accepts a Context that controls the entire lifetime of + the created outgoing Request, suitable for use with + Client.Do and Transport.RoundTrip +

+ +

+ Transport now silently ignores a 408 "Request Timeout" response. +

+
os