@@ -418,15 +418,20 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
418
418
< dl id ="net "> < dt > < a href ="/pkg/net/ "> net</ a > </ dt >
419
419
< dd >
420
420
< p > <!-- CL 272668 -->
421
- TODO: < a href ="https://golang.org/cl/272668 "> https://golang.org/cl/272668</ a > : add IP.IsPrivate
421
+ The new method < a href ="/pkg/net/#IP.IsPrivate "> < code > IP.IsPrivate</ code > </ a > reports whether an address is
422
+ a private IPv4 address according to < a href ="http://tools.ietf.org/html/rfc1918 "> RFC 1918</ a >
423
+ or a local IPv6 address according < a href ="http://tools.ietf.org/html/rfc4193 "> RFC 4193</ a > .
422
424
</ p >
423
425
424
426
< p > <!-- CL 301709 -->
425
- TODO: < a href ="https://golang.org/cl/301709 "> https://golang.org/cl/301709</ a > : make go resolver aware of network parameter
427
+ The Go DNS resolver now only sends one DNS query when resolving an address for an IPv4-only or IPv6-only network,
428
+ rather than querying for both address families.
426
429
</ p >
427
430
428
431
< p > <!-- CL 307030 -->
429
- TODO: < a href ="https://golang.org/cl/307030 "> https://golang.org/cl/307030</ a > : make ErrClosed and ParseError implement net.Error
432
+ The < a href ="/pkg/net/#ErrClosed "> < code > ErrClosed</ code > </ a > sentinel error and
433
+ < a href ="/pkg/net/#ParseError "> < code > ParseError</ code > </ a > error type now implement
434
+ the < a href ="/pkg/net/#Error "> < code > net.Error</ code > </ a > interface.
430
435
</ p >
431
436
</ dd >
432
437
</ dl > <!-- net -->
@@ -441,7 +446,9 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
441
446
</ p >
442
447
443
448
< p > <!-- CL 235437 -->
444
- TODO: < a href ="https://golang.org/cl/235437 "> https://golang.org/cl/235437</ a > : add to deadlines only when positive
449
+ Setting the < a href ="/pkg/net/http/#Server "> < code > Server</ code > </ a >
450
+ < code > ReadTimeout</ code > or < code > WriteTimeout</ code > fields to a negative value now indicates no timeout
451
+ rather than an immediate timeout.
445
452
</ p >
446
453
447
454
< p > <!-- CL 308952 -->
@@ -454,15 +461,19 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
454
461
< dl id ="net/http/httptest "> < dt > < a href ="/pkg/net/http/httptest/ "> net/http/httptest</ a > </ dt >
455
462
< dd >
456
463
< p > <!-- CL 308950 -->
457
- TODO: < a href ="https://golang.org/cl/308950 "> https://golang.org/cl/308950</ a > : panic on non-3 digit (XXX) status code in Recorder.WriteHeader
464
+ < a href ="/pkg/net/http/httptest/#ResponseRecorder.WriteHeader "> < code > ResponseRecorder.WriteHeader> </ code > </ a >
465
+ now panics when the provided code is not a valid three-digit HTTP status code.
466
+ This matches the behavior of < a href ="/pkg/net/http/#ResponseWriter "> < code > ResponseWriter> </ code > </ a >
467
+ implementations in the < a href ="/pkg/net/http/ "> < code > net/http</ code > </ a > package.
458
468
</ p >
459
469
</ dd >
460
470
</ dl > <!-- net/http/httptest -->
461
471
462
472
< dl id ="net/url "> < dt > < a href ="/pkg/net/url/ "> net/url</ a > </ dt >
463
473
< dd >
464
474
< p > <!-- CL 314850 -->
465
- TODO: < a href ="https://golang.org/cl/314850 "> https://golang.org/cl/314850</ a > : add Values.Has
475
+ The new method < a href ="/pkg/net/url/#Values.Has "> < code > Values.Has</ code > </ a >
476
+ reports whether a query parameter is set.
466
477
</ p >
467
478
</ dd >
468
479
</ dl > <!-- net/url -->
0 commit comments