From 346698eea71139280e3b3380554371b5d332ce02 Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Thu, 26 May 2022 15:09:34 -0700 Subject: [PATCH] doc/go1.19: add release notes for net/http and net/url For #51400 Change-Id: I6412132db79074eef7d2cb3d66456c48b0d745a3 Reviewed-on: https://go-review.googlesource.com/c/go/+/408877 TryBot-Result: Gopher Robot Run-TryBot: Damien Neil Reviewed-by: Russ Cox Reviewed-by: Carlos Amedee --- doc/go1.19.html | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/doc/go1.19.html b/doc/go1.19.html index 2674ad6972..b8d372224a 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -578,22 +578,46 @@ Do not send CLs removing the interior tags from such phrases.
net/http

- TODO: https://go.dev/cl/269997: allow sending 1xx responses + ResponseWriter.WriteHeader + now supports sending user-defined 1xx informational headers.

-

- TODO: https://go.dev/cl/361397: net/http: add MaxBytesError; modified api/next/30715.txt - TODO: https://go.dev/issue/30715: add MaxBytesError + +

+ The io.ReadCloser returned by + MaxBytesReader + will now return the defined error type + MaxBytesError + when its read limit is exceeded. +

+ +

+ The HTTP client will handle a 3xx response without a + Location header by returning it to the caller, + rather than treating it as an error.

net/url
-

- TODO: https://go.dev/cl/374654: add JoinPath, URL.JoinPath +

+ The new + JoinPath + function and + URL.JoinPath + method create a new URL by joining a list of path + elements.

- TODO: https://go.dev/issue/46059: add OmitHost bool to URL + The URL type now distinguishes between URLs with no + authority and URLs with an empty authority. For example, + http:///path has an empty authority (host), + while http:/path has none. +

+

+ The new URL field + OmitHost is set to true when a + URL has an empty authority.