Description

TLSNextProto optionally specifies a function to take over ownership of the provided TLS connection when an NPN/ALPN protocol upgrade has occurred. The map key is the protocol name negotiated. The Handler argument should be used to 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 is referenced in 58 repositories

github.com/golang/go github.com/SlyMarbo/spdy github.com/SlyMarbo/wp

...