aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2015-12-18 18:26:51 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2015-12-18 18:30:39 +0000
commitb73e247a8eeef69ea87afea80c7a7a1b88e61553 (patch)
treef6f49d736e370901a7a320c2cb2e34c8bacbcd47 /src
parentab74f5944e1048f7293b519dfe26359db17d5ff2 (diff)
downloadgo-b73e247a8eeef69ea87afea80c7a7a1b88e61553.tar.xz
net/http: document that Server.TLSNextProto has automatic HTTP/2 also
Copy the same sentence from Transport.TLSNextProto. Change-Id: Ib67bf054e891a68be8ba466a8c52968363374d16 Reviewed-on: https://go-review.googlesource.com/18031 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/net/http/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go
index 8a854f03b9..15a1cc4144 100644
--- a/src/net/http/server.go
+++ b/src/net/http/server.go
@@ -1935,6 +1935,7 @@ type Server struct {
// handle HTTP requests and will initialize the Request's TLS
// and RemoteAddr if not already set. The connection is
// automatically closed when the function returns.
+ // If TLSNextProto is nil, HTTP/2 support is enabled automatically.
TLSNextProto map[string]func(*Server, *tls.Conn, Handler)
// ConnState specifies an optional callback function that is