Yes, but only in Go 1.8+. APIs existed in Go 1.7, but only before Go 1.8 disconnected the client interface, the Request Context was called, so in Go 1.7 there was still a valid use of CloseNotifier.
(Source: I added โcontextโ to the standard library and am the author of the net / http package.)
Brad fitzpatrick
source share