Commit a6993205 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net/http: update docs on Request.Proto, ProtoMajor, ProtoMinor

Change-Id: I4a6928b4674b6aaab3611cad7526347923a0015f
Reviewed-on: https://go-review.googlesource.com/18153Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent f034ee8c
...@@ -90,8 +90,11 @@ type Request struct { ...@@ -90,8 +90,11 @@ type Request struct {
// request. // request.
URL *url.URL URL *url.URL
// The protocol version for incoming requests. // The protocol version for incoming server requests.
// Client requests always use HTTP/1.1. //
// 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" Proto string // "HTTP/1.0"
ProtoMajor int // 1 ProtoMajor int // 1
ProtoMinor int // 0 ProtoMinor int // 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment