summaryrefslogtreecommitdiff
path: root/src/net/http/request.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2018-07-06 16:32:13 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-07-06 17:40:56 +0000
commitc5ac91d0e1082914d3eeb8dff9d80974eb1bf9b7 (patch)
treee1856c49c22c34df1f5e1adb5b0bad7038bc1610 /src/net/http/request.go
parentb0155e34241ccd437ba39cc5bdf8c887b5107772 (diff)
downloadgo-git-c5ac91d0e1082914d3eeb8dff9d80974eb1bf9b7.tar.gz
all: clean up some Deprecated comments
Change-Id: Ie801fe6a2883d79229ee2955e26948c1b4964802 Reviewed-on: https://go-review.googlesource.com/122496 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/net/http/request.go')
-rw-r--r--src/net/http/request.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/net/http/request.go b/src/net/http/request.go
index 13c5417053..8cb278ea2c 100644
--- a/src/net/http/request.go
+++ b/src/net/http/request.go
@@ -65,11 +65,19 @@ var (
// request's Content-Type is not multipart/form-data.
ErrNotMultipart = &ProtocolError{"request Content-Type isn't multipart/form-data"}
- // Deprecated: ErrHeaderTooLong is not used.
+ // Deprecated: ErrHeaderTooLong is no longer returned by
+ // anything in the net/http package. Callers should not
+ // compare errors against this variable.
ErrHeaderTooLong = &ProtocolError{"header too long"}
- // Deprecated: ErrShortBody is not used.
+
+ // Deprecated: ErrShortBody is no longer returned by
+ // anything in the net/http package. Callers should not
+ // compare errors against this variable.
ErrShortBody = &ProtocolError{"entity body too short"}
- // Deprecated: ErrMissingContentLength is not used.
+
+ // Deprecated: ErrMissingContentLength is no longer returned by
+ // anything in the net/http package. Callers should not
+ // compare errors against this variable.
ErrMissingContentLength = &ProtocolError{"missing ContentLength in HEAD response"}
)