crypto/tls.Config.NextProtos (field)
40 uses
crypto/tls (current package)
common.go#L601: NextProtos []string
common.go#L764: NextProtos: c.NextProtos,
handshake_client.go#L42: for _, proto := range config.NextProtos {
handshake_client.go#L77: alpnProtocols: config.NextProtos,
handshake_server.go#L217: if selectedProto := mutualProtocol(hs.clientHello.alpnProtocols, c.config.NextProtos); selectedProto != "" {
handshake_server_tls13.go#L569: if selectedProto := mutualProtocol(hs.clientHello.alpnProtocols, c.config.NextProtos); selectedProto != "" {
golang.org/x/net/http2
server.go#L269: for _, p := range s.TLSConfig.NextProtos {
server.go#L276: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, NextProtoTLS)
transport.go#L184: if !strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {
transport.go#L185: t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)
transport.go#L187: if !strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {
transport.go#L188: t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")
transport.go#L584: if !strSliceContains(cfg.NextProtos, NextProtoTLS) {
transport.go#L585: 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#L3835: for _, p := range s.TLSConfig.NextProtos {
h2_bundle.go#L3842: s.TLSConfig.NextProtos = append(s.TLSConfig.NextProtos, http2NextProtoTLS)
h2_bundle.go#L6686: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "h2") {
h2_bundle.go#L6687: t1.TLSClientConfig.NextProtos = append([]string{"h2"}, t1.TLSClientConfig.NextProtos...)
h2_bundle.go#L6689: if !http2strSliceContains(t1.TLSClientConfig.NextProtos, "http/1.1") {
h2_bundle.go#L6690: t1.TLSClientConfig.NextProtos = append(t1.TLSClientConfig.NextProtos, "http/1.1")
h2_bundle.go#L7087: if !http2strSliceContains(cfg.NextProtos, http2NextProtoTLS) {
h2_bundle.go#L7088: cfg.NextProtos = append([]string{http2NextProtoTLS}, cfg.NextProtos...)
server.go#L2934: return strSliceContains(srv.TLSConfig.NextProtos, http2NextProtoTLS)
server.go#L3038: if !strSliceContains(config.NextProtos, "http/1.1") {
server.go#L3039: config.NextProtos = append(config.NextProtos, "http/1.1")
transport.go#L1515: cfg.NextProtos = nil
net/http/httptest
server.go#L158: if s.TLS.NextProtos == nil {
server.go#L163: s.TLS.NextProtos = nextProtos
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |