Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewAppProtocol (0.16 sec)

  1. pilot/pkg/networking/core/match/match.go

    	return newMapper(SourceIP)
    }
    
    func NewDestinationPort() Mapper {
    	return newMapper(DestinationPort)
    }
    
    type ProtocolMatch struct {
    	TCP, HTTP *matcher.Matcher_OnMatch
    }
    
    func NewAppProtocol(pm ProtocolMatch) *matcher.Matcher {
    	m := newMapper(ApplicationProtocolInput)
    	m.Map["'h2c'"] = pm.HTTP
    	m.Map["'http/1.1'"] = pm.HTTP
    	if features.HTTP10 {
    		m.Map["'http/1.0'"] = pm.HTTP
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listener_waypoint.go

    			}
    			if port.Protocol.IsUnsupported() {
    				// If we need to sniff, insert two chains and the protocol detector
    				chains = append(chains, tcpChain, httpChain)
    				portMapper.Map[portString] = match.ToMatcher(match.NewAppProtocol(match.ProtocolMatch{
    					TCP:  match.ToChain(tcpName),
    					HTTP: match.ToChain(httpName),
    				}))
    			} else if port.Protocol.IsHTTP() {
    				// Otherwise, just insert HTTP/TCP
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top