@@ -578,22 +578,46 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
578
578
< dl id ="net/http "> < dt > < a href ="/pkg/net/http/ "> net/http</ a > </ dt >
579
579
< dd >
580
580
< p > <!-- CL 269997 -->
581
- TODO: < a href ="https://go.dev/cl/269997 "> https://go.dev/cl/269997</ a > : allow sending 1xx responses
581
+ < a href ="/pkg/net/http/#ResponseWriter "> < code > ResponseWriter.WriteHeader</ code > </ a >
582
+ now supports sending user-defined 1xx informational headers.
582
583
</ p >
583
- < p > <!-- https://go.dev/issue/30715 --> <!-- CL 361397 -->
584
- TODO: < a href ="https://go.dev/cl/361397 "> https://go.dev/cl/361397</ a > : net/http: add MaxBytesError; modified api/next/30715.txt
585
- TODO: < a href ="https://go.dev/issue/30715 "> https://go.dev/issue/30715</ a > : add MaxBytesError
584
+
585
+ < p > <!-- CL 361397 -->
586
+ The < code > io.ReadCloser</ code > returned by
587
+ < a href ="/pkg/net/http/#MaxBytesReader "> < code > MaxBytesReader</ code > </ a >
588
+ will now return the defined error type
589
+ < a href ="/pkg/net/http/#MaxBytesError "> < code > MaxBytesError</ code > </ a >
590
+ when its read limit is exceeded.
591
+ </ p >
592
+
593
+ < p > <!-- CL 375354 -->
594
+ The HTTP client will handle a 3xx response without a
595
+ < code > Location</ code > header by returning it to the caller,
596
+ rather than treating it as an error.
586
597
</ p >
587
598
</ dd >
588
599
</ dl > <!-- net/http -->
589
600
590
601
< dl id ="net/url "> < dt > < a href ="/pkg/net/url/ "> net/url</ a > </ dt >
591
602
< dd >
592
- < p > <!-- https://go.dev/issue/47005 --> <!-- CL 374654 -->
593
- TODO: < a href ="https://go.dev/cl/374654 "> https://go.dev/cl/374654</ a > : add JoinPath, URL.JoinPath
603
+ < p > <!-- CL 374654 -->
604
+ The new
605
+ < a href ="/pkg/net/url/#JoinPath "> < code > JoinPath</ code > </ a >
606
+ function and
607
+ < a href ="/pkg/net/url/#URL.JoinPath "> < code > URL.JoinPath</ code > </ a >
608
+ method create a new < code > URL</ code > by joining a list of path
609
+ elements.
594
610
</ p >
595
611
< p > <!-- https://go.dev/issue/46059 -->
596
- TODO: < a href ="https://go.dev/issue/46059 "> https://go.dev/issue/46059</ a > : add OmitHost bool to URL
612
+ The < code > URL</ code > type now distinguishes between URLs with no
613
+ authority and URLs with an empty authority. For example,
614
+ < code > http:///path</ code > has an empty authority (host),
615
+ while < code > http:/path</ code > has none.
616
+ </ p >
617
+ < p >
618
+ The new < a href ="/pkg/net/url/#URL "> < code > URL</ code > </ a > field
619
+ < code > OmitHost</ code > is set to < code > true</ code > when a
620
+ < code > URL</ code > has an empty authority.
597
621
</ p >
598
622
599
623
</ dd >
0 commit comments