Skip to content

Commit 5310d2c

Browse files
committed
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
1 parent e764432 commit 5310d2c

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)