mirror of
https://github.com/golang/go.git
synced 2025-05-29 03:11:26 +00:00
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: 5310d2c9608a1af2d3030a9573e920906c76744e GitHub-Pull-Request: golang/go#33770 Reviewed-on: https://go-review.googlesource.com/c/go/+/191237 Reviewed-by: Andrew Bonventre <andybons@golang.org> Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
d9b1323337
commit
f3e3b71a50
@ -3177,8 +3177,8 @@ func (srv *Server) onceSetNextProtoDefaults() {
|
||||
// After such a timeout, writes by h to its ResponseWriter will return
|
||||
// ErrHandlerTimeout.
|
||||
//
|
||||
// TimeoutHandler buffers all Handler writes to memory and does not
|
||||
// support the Hijacker or Flusher interfaces.
|
||||
// TimeoutHandler supports the Flusher and Pusher interfaces but does not
|
||||
// support the Hijacker interface.
|
||||
func TimeoutHandler(h Handler, dt time.Duration, msg string) Handler {
|
||||
return &timeoutHandler{
|
||||
handler: h,
|
||||
|
Loading…
x
Reference in New Issue
Block a user