diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2011-04-21 19:57:19 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2011-04-21 19:57:19 -0700 |
| commit | 8d6a12f57012abec3db7bd7a124ac7551faeef04 (patch) | |
| tree | b7199a1fb1661d840166ef31789b48e476d13933 /src/pkg/http/request.go | |
| parent | 750b6c63f9e3c81d055ac73395c82381a5e0281e (diff) | |
| download | go-8d6a12f57012abec3db7bd7a124ac7551faeef04.tar.xz | |
http: clarify docs on Request HTTP version
Fixes #910
R=adg, rsc1
CC=golang-dev
https://golang.org/cl/4439062
Diffstat (limited to 'src/pkg/http/request.go')
| -rw-r--r-- | src/pkg/http/request.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index 633c91e8d2..26039cb623 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -64,9 +64,12 @@ var reqExcludeHeader = map[string]bool{ // A Request represents a parsed HTTP request header. type Request struct { - Method string // GET, POST, PUT, etc. - RawURL string // The raw URL given in the request. - URL *URL // Parsed URL. + Method string // GET, POST, PUT, etc. + RawURL string // The raw URL given in the request. + URL *URL // Parsed URL. + + // The protocol version for incoming requests. + // Outgoing requests always use HTTP/1.1. Proto string // "HTTP/1.0" ProtoMajor int // 1 ProtoMinor int // 0 |
