Skip to content

Commit f3e3b71

Browse files
jmhodgesandybons
authored andcommitted
net/http: change TimeoutHandler's docs to match its new interfaces
As of Go 1.13rc1, TimeoutHandler supports the Flusher and Pusher interfaces and this change corrects its documentation to say that. Fixes #33769 Updates #29193 Change-Id: Ia0523f7f2e3dc1f8f0b68950b85a7bf81c4abe60 GitHub-Last-Rev: 5310d2c GitHub-Pull-Request: #33770 Reviewed-on: https://go-review.googlesource.com/c/go/+/191237 Reviewed-by: Andrew Bonventre <[email protected]> Run-TryBot: Andrew Bonventre <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent d9b1323 commit f3e3b71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/http/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3177,8 +3177,8 @@ func (srv *Server) onceSetNextProtoDefaults() {
31773177
// After such a timeout, writes by h to its ResponseWriter will return
31783178
// ErrHandlerTimeout.
31793179
//
3180-
// TimeoutHandler buffers all Handler writes to memory and does not
3181-
// support the Hijacker or Flusher interfaces.
3180+
// TimeoutHandler supports the Flusher and Pusher interfaces but does not
3181+
// support the Hijacker interface.
31823182
func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler {
31833183
return &timeoutHandler{
31843184
handler: h,

0 commit comments

Comments
 (0)