type net/http.Protocols
25 uses
net/http (current package)
http.go#L29: type Protocols struct {
http.go#L41: func (p Protocols) HTTP1() bool { return p.bits&protoHTTP1 != 0 }
http.go#L44: func (p *Protocols) SetHTTP1(ok bool) { p.setBit(protoHTTP1, ok) }
http.go#L47: func (p Protocols) HTTP2() bool { return p.bits&protoHTTP2 != 0 }
http.go#L50: func (p *Protocols) SetHTTP2(ok bool) { p.setBit(protoHTTP2, ok) }
http.go#L53: func (p Protocols) UnencryptedHTTP2() bool { return p.bits&protoUnencryptedHTTP2 != 0 }
http.go#L56: func (p *Protocols) SetUnencryptedHTTP2(ok bool) { p.setBit(protoUnencryptedHTTP2, ok) }
http.go#L59: func (p Protocols) http3() bool { return p.bits&protoHTTP3 != 0 }
http.go#L62: func (p *Protocols) setHTTP3(ok bool) { p.setBit(protoHTTP3, ok) }
http.go#L65: func protocolSetHTTP3(p *Protocols) { p.setHTTP3(true) }
http.go#L67: func (p *Protocols) setBit(bit uint8, ok bool) {
http.go#L76: func (p Protocols) empty() bool {
http.go#L80: func (p Protocols) String() string {
http2.go#L284: func (t *Transport) configureHTTP2(protocols Protocols) {
server.go#L3182: Protocols *Protocols
server.go#L3658: func (s *Server) protocols() Protocols {
server.go#L3665: var p Protocols
server.go#L3684: var p Protocols
server.go#L3694: func adjustNextProtos(nextProtos []string, protos Protocols) []string {
server.go#L3701: var have Protocols
transport.go#L319: Protocols *Protocols
transport.go#L377: t2.Protocols = &Protocols{}
transport.go#L476: func (t *Transport) protocols() Protocols {
transport.go#L480: var p Protocols
golang.org/x/net/http2
transport_wrap.go#L41: t1.Protocols = new(http.Protocols)
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)