crypto/tls.Config.NextProtos (field)
46 uses
crypto/tls (current package)
common.go#L690: NextProtos []string
common.go#L1014: NextProtos: c.NextProtos,
handshake_client.go#L50: for _, proto := range config.NextProtos {
handshake_client.go#L81: alpnProtocols: config.NextProtos,
handshake_server.go#L269: 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.go#L205: if !strSliceContains(s.TLSConfig.NextProtos, NextProtoTLS) {
server.go#L206: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, NextProtoTLS)
server.go#L208: if !strSliceContains(s.TLSConfig.NextProtos, "http/1.1") {
server.go#L209: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, "http/1.1")
transport.go#L123: if !strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {
transport.go#L124: t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)
transport.go#L126: if !strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {
transport.go#L127: t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")
transport.go#L439: if !strSliceContains(cfg.NextProtos, NextProtoTLS) {
transport.go#L440: cfg.NextProtos = append([]string{NextProtoTLS}, cfg.NextProtos...)
google.golang.org/grpc/credentials
tls.go#L239: config.NextProtos = credinternal.AppendH2ToNextProtos(config.NextProtos)
net/http
h2_bundle.go#L4277: if !http2strSliceContains(s.TLSConfig.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L4278: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, http2NextProtoTLS)
h2_bundle.go#L4280: if !http2strSliceContains(s.TLSConfig.NextProtos, "http/1.1") {
h2_bundle.go#L4281: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, "http/1.1")
h2_bundle.go#L7539: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {
h2_bundle.go#L7540: t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)
h2_bundle.go#L7542: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {
h2_bundle.go#L7543: t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")
h2_bundle.go#L8035: if !http2strSliceContains(cfg.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L8036: cfg.NextProtos = append([]string{http2NextProtoTLS}, cfg.NextProtos...)
server.go#L3387: return slices.Contains(s.TLSConfig.NextProtos, http2NextProtoTLS)
server.go#L3490: config.NextProtos = adjustNextProtos(config.NextProtos, s.protocols())
transport.go#L461: t.TLSClientConfig.NextProtos = adjustNextProtos(t.TLSClientConfig.NextProtos, protocols)
transport.go#L1721: cfg.NextProtos = nil