From: Damien Neil
- TODO: https://golang.org/cl/272668: add IP.IsPrivate
+ The new method
- TODO: https://golang.org/cl/301709: make go resolver aware of network parameter
+ The Go DNS resolver now only sends one DNS query when resolving an address for an IPv4-only or IPv6-only network,
+ rather than querying for both address families.
- TODO: https://golang.org/cl/307030: make ErrClosed and ParseError implement net.Error
+ The
@@ -441,7 +446,9 @@ Do not send CLs removing the interior tags from such phrases.
IP.IsPrivate
reports whether an address is
+ a private IPv4 address according to RFC 1918
+ or a local IPv6 address according RFC 4193.
ErrClosed
sentinel error and
+ ParseError
error type now implement
+ the net.Error
interface.
- TODO: https://golang.org/cl/235437: add to deadlines only when positive
+ Setting the Server
+ ReadTimeout
or WriteTimeout
fields to a negative value now indicates no timeout
+ rather than an immediate timeout.
@@ -454,7 +461,10 @@ Do not send CLs removing the interior tags from such phrases.
- TODO: https://golang.org/cl/308950: panic on non-3 digit (XXX) status code in Recorder.WriteHeader
+ ResponseRecorder.WriteHeader>
+ now panics when the provided code is not a valid three-digit HTTP status code.
+ This matches the behavior of ResponseWriter>
+ implementations in the net/http
package.
- TODO: https://golang.org/cl/314850: add Values.Has
+ The new method Values.Has
+ reports whether a query parameter is set.