crypto/tls.Config.NextProtos (field)
47 uses
crypto/tls (current package)
common.go#L662: NextProtos []string
common.go#L940: NextProtos: c.NextProtos,
handshake_client.go#L54: for _, proto := range config.NextProtos {
handshake_client.go#L82: alpnProtocols: config.NextProtos,
handshake_server.go#L254: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, false)
handshake_server_tls13.go#L297: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, c.quic != nil)
golang.org/x/net/http2
server.go#L329: if !strSliceContains(s.TLSConfig.NextProtos, NextProtoTLS) {
server.go#L330: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, NextProtoTLS)
server.go#L332: if !strSliceContains(s.TLSConfig.NextProtos, "http/1.1") {
server.go#L333: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, "http/1.1")
transport.go#L293: if !strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {
transport.go#L294: t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)
transport.go#L296: if !strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {
transport.go#L297: t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")
transport.go#L718: if !strSliceContains(cfg.NextProtos, NextProtoTLS) {
transport.go#L719: cfg.NextProtos = append([]string{NextProtoTLS}, cfg.NextProtos...)
google.golang.org/grpc/credentials
tls.go#L144: tc.config.NextProtos = credinternal.AppendH2ToNextProtos(tc.config.NextProtos)
net/http
h2_bundle.go#L4347: if !http2strSliceContains(s.TLSConfig.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L4348: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, http2NextProtoTLS)
h2_bundle.go#L4350: if !http2strSliceContains(s.TLSConfig.NextProtos, "http/1.1") {
h2_bundle.go#L4351: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, "http/1.1")
h2_bundle.go#L7714: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {
h2_bundle.go#L7715: t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)
h2_bundle.go#L7717: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {
h2_bundle.go#L7718: t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")
h2_bundle.go#L8196: if !http2strSliceContains(cfg.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L8197: cfg.NextProtos = append([]string{http2NextProtoTLS}, cfg.NextProtos...)
server.go#L3377: return slices.Contains(s.TLSConfig.NextProtos, http2NextProtoTLS)
server.go#L3480: config.NextProtos = adjustNextProtos(config.NextProtos, s.protocols())
transport.go#L453: t.TLSClientConfig.NextProtos = adjustNextProtos(t.TLSClientConfig.NextProtos, protocols)
transport.go#L1688: cfg.NextProtos = nil
net/http/httptest
server.go#L160: if s.TLS.NextProtos == nil {
server.go#L165: s.TLS.NextProtos = nextProtos