crypto/tls.Config.NextProtos (field)
28 uses
crypto/tls (current package)
common.go#L705: NextProtos []string
common.go#L1027: NextProtos: c.NextProtos,
handshake_client.go#L51: for _, proto := range config.NextProtos {
handshake_client.go#L82: alpnProtocols: config.NextProtos,
handshake_server.go#L265: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, false)
handshake_server_tls13.go#L260: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, c.quic != nil)
github.com/jackc/pgx/v5/pgconn
config.go#L797: tlsConfig.NextProtos = []string{"postgresql"}
golang.org/x/net/http2
server_wrap.go#L56: if !slices.Contains(s.TLSConfig.NextProtos, NextProtoTLS) {
server_wrap.go#L57: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, NextProtoTLS)
server_wrap.go#L59: if !slices.Contains(s.TLSConfig.NextProtos, "http/1.1") {
server_wrap.go#L60: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, "http/1.1")
transport_wrap.go#L346: if !slices.Contains(tlsConf.NextProtos, "h2") {
transport_wrap.go#L347: tlsConf.NextProtos = append([]string{"h2"}, tlsConf.NextProtos...)
google.golang.org/grpc/credentials
tls.go#L239: config.NextProtos = credinternal.AppendH2ToNextProtos(config.NextProtos)
net/http
http2.go#L311: t.TLSClientConfig.NextProtos = adjustNextProtos(t.TLSClientConfig.NextProtos, protocols)
server.go#L3512: return slices.Contains(s.TLSConfig.NextProtos, "h2")
server.go#L3610: config.NextProtos = nextProtos
server.go#L3647: nextProtos = s.TLSConfig.NextProtos
transport.go#L1788: cfg.NextProtos = nil
net/http/internal/http2
transport.go#L563: if !slices.Contains(cfg.NextProtos, NextProtoTLS) {
transport.go#L564: cfg.NextProtos = append([]string{NextProtoTLS}, cfg.NextProtos...)