summaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
diff options
context:
space:
mode:
authorPetar Maymounkov <petarm@gmail.com>2010-01-18 21:46:59 -0800
committerPetar Maymounkov <petarm@gmail.com>2010-01-18 21:46:59 -0800
commit7de976c33388e765ed72df7ef0273564113fee53 (patch)
treee4b7155370ceef953c1a2aa18ea5f6c5faf2a971 /src/pkg/http/request.go
parent58df3d579757299e8a801cdbe4c4095e6ed6218a (diff)
downloadgolang-7de976c33388e765ed72df7ef0273564113fee53.tar.gz
Significant extension to http.Response, which now adheres to the
usage pattern of http.Request and paves the way to persistent connection handling. R=rsc CC=golang-dev http://codereview.appspot.com/185043 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/http/request.go')
-rw-r--r--src/pkg/http/request.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go
index 884fe48fa..2ade5b766 100644
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -34,9 +34,12 @@ type ProtocolError struct {
}
var (
- ErrLineTooLong = &ProtocolError{"header line too long"}
- ErrHeaderTooLong = &ProtocolError{"header too long"}
- ErrShortBody = &ProtocolError{"entity body too short"}
+ ErrLineTooLong = &ProtocolError{"header line too long"}
+ ErrHeaderTooLong = &ProtocolError{"header too long"}
+ ErrShortBody = &ProtocolError{"entity body too short"}
+ ErrNotSupported = &ProtocolError{"feature not supported"}
+ ErrUnexpectedTrailer = &ProtocolError{"trailer header without chunked transfer encoding"}
+ ErrMissingContentLength = &ProtocolError{"missing ContentLength in HEAD response"}
)
type badStringError struct {