mirror of
https://github.com/golang/go
synced 2024-11-18 10:04:43 -07:00
net/http: add more docs on ErrHijacked
Updates #16456 Change-Id: Ifea651ea3ece2267a6f0c1638181d6ddd9248a9f Reviewed-on: https://go-review.googlesource.com/31181 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
7a7ea01c65
commit
1e775fe4a3
@ -40,7 +40,9 @@ var (
|
||||
|
||||
// ErrHijacked is returned by ResponseWriter.Write calls when
|
||||
// the underlying connection has been hijacked using the
|
||||
// Hijacker interfaced.
|
||||
// Hijacker interface. A zero-byte write on a hijacked
|
||||
// connection will return ErrHijacked without any other side
|
||||
// effects.
|
||||
ErrHijacked = errors.New("http: connection has been hijacked")
|
||||
|
||||
// ErrContentLength is returned by ResponseWriter.Write calls
|
||||
|
Loading…
Reference in New Issue
Block a user