]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: document that Server.TLSNextProto has automatic HTTP/2 also
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 18 Dec 2015 18:26:51 +0000 (18:26 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 18 Dec 2015 18:30:39 +0000 (18:30 +0000)
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>
src/net/http/server.go

index 8a854f03b923491c06d57bae657c0a7461638197..15a1cc4144f05778aa4ccca69b93b848a8ceab47 100644 (file)
@@ -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