crypto/tls.Config.NextProtos (field)
27 uses
crypto/tls (current package)
common.go#L650: NextProtos []string
common.go#L891: NextProtos: c.NextProtos,
handshake_client.go#L51: for _, proto := range config.NextProtos {
handshake_client.go#L79: alpnProtocols: config.NextProtos,
handshake_server.go#L230: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, false)
handshake_server_tls13.go#L262: selectedProto, err := negotiateALPN(c.config.NextProtos, hs.clientHello.alpnProtocols, c.quic != nil)
net/http
h2_bundle.go#L4159: if !http2strSliceContains(s.TLSConfig.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L4160: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, http2NextProtoTLS)
h2_bundle.go#L4162: if !http2strSliceContains(s.TLSConfig.NextProtos, "http/1.1") {
h2_bundle.go#L4163: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, "http/1.1")
h2_bundle.go#L7429: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {
h2_bundle.go#L7430: t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)
h2_bundle.go#L7432: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {
h2_bundle.go#L7433: t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")
h2_bundle.go#L7855: if !http2strSliceContains(cfg.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L7856: cfg.NextProtos = append([]string{http2NextProtoTLS}, cfg.NextProtos...)
server.go#L3283: return slices.Contains(srv.TLSConfig.NextProtos, http2NextProtoTLS)
server.go#L3386: if !slices.Contains(config.NextProtos, "http/1.1") {
server.go#L3387: config.NextProtos = append(config.NextProtos, "http/1.1")
transport.go#L1636: cfg.NextProtos = nil
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |