diff options
Diffstat (limited to 'libgo/go/net/http/doc.go')
-rw-r--r-- | libgo/go/net/http/doc.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgo/go/net/http/doc.go b/libgo/go/net/http/doc.go index b1216e8dafa..4ec8272f628 100644 --- a/libgo/go/net/http/doc.go +++ b/libgo/go/net/http/doc.go @@ -76,5 +76,20 @@ custom Server: MaxHeaderBytes: 1 << 20, } log.Fatal(s.ListenAndServe()) + +The http package has transparent support for the HTTP/2 protocol when +using HTTPS. Programs that must disable HTTP/2 can do so by setting +Transport.TLSNextProto (for clients) or Server.TLSNextProto (for +servers) to a non-nil, empty map. Alternatively, the following GODEBUG +environment variables are currently supported: + + GODEBUG=http2client=0 # disable HTTP/2 client support + GODEBUG=http2server=0 # disable HTTP/2 server support + GODEBUG=http2debug=1 # enable verbose HTTP/2 debug logs + GODEBUG=http2debug=2 # ... even more verbose, with frame dumps + +The GODEBUG variables are not covered by Go's API compatibility promise. +HTTP/2 support was added in Go 1.6. Please report any issues instead of +disabling HTTP/2 support: https://golang.org/s/http2bug */ package http |