From: Brad Fitzpatrick Date: Tue, 29 Dec 2015 17:54:16 +0000 (-0800) Subject: net/http: update docs on Request.Proto, ProtoMajor, ProtoMinor X-Git-Tag: go1.6beta2~180 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a69932051266a817d950996c79927541ebdd26bb;p=gostls13.git net/http: update docs on Request.Proto, ProtoMajor, ProtoMinor Change-Id: I4a6928b4674b6aaab3611cad7526347923a0015f Reviewed-on: https://go-review.googlesource.com/18153 Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/http/request.go b/src/net/http/request.go index d1793c75d7..71ba27ed27 100644 --- a/src/net/http/request.go +++ b/src/net/http/request.go @@ -90,8 +90,11 @@ type Request struct { // request. URL *url.URL - // The protocol version for incoming requests. - // Client requests always use HTTP/1.1. + // The protocol version for incoming server requests. + // + // For client requests these fields are ignored. The HTTP + // transport code uses either HTTP/1.1 or HTTP/2.0 by default, + // depending on what the server supports. Proto string // "HTTP/1.0" ProtoMajor int // 1 ProtoMinor int // 0