Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for IsHTTP (0.13 sec)

  1. pilot/pkg/model/gateway.go

    	// so we have no fallback. If there was no match, the Gateway is a no-op.
    	return ret
    }
    
    func canMergeProtocols(current protocol.Instance, p protocol.Instance) bool {
    	return (current.IsHTTP() || current == p) && p.IsHTTP()
    }
    
    func GetSNIHostsForServer(server *networking.Server) []string {
    	if server.Tls == nil {
    		return nil
    	}
    	// sanitize the server hosts as it could contain hosts of form ns/host
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

            if (isInputTrackingDisabled()) {
                return
            }
    
            scriptSource.uri?.takeIf { it.isHttp }?.let { uri ->
                sink().captureRemoteScript(uri)
            }
        }
    
        /**
         * Returns `true` if [scheme][URI.scheme] starts with `http`.
         */
        private
        val URI.isHttp: Boolean
            get() = scheme.startsWith("http")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  3. pilot/pkg/simulation/traffic.go

    	HTTP2 Protocol = "http2"
    	TCP   Protocol = "tcp"
    )
    
    type TLSMode string
    
    const (
    	Plaintext TLSMode = "plaintext"
    	TLS       TLSMode = "tls"
    	MTLS      TLSMode = "mtls"
    )
    
    func (c Call) IsHTTP() bool {
    	return httpProtocols.Contains(string(c.Protocol)) && (c.TLS == Plaintext || c.TLS == "")
    }
    
    var httpProtocols = sets.New(string(HTTP), string(HTTP2))
    
    var (
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/sidecar_simulation_test.go

    						e.Result.ClusterMatched = ""
    						e.Result.VirtualHostMatched = util.BlackHole
    					}
    					// TCP without a VIP will capture everything.
    					// Auto without a VIP is similar, but HTTP happens to work because routing is done on header
    					if call.Port == 82 || (call.Port == 81 && !call.IsHTTP()) {
    						e.Result.Error = nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  5. pkg/config/validation/validation.go

    				if portNames[s.Port.Name] {
    					v = AppendValidation(v, fmt.Errorf("port names in servers must be unique: duplicate name %s", s.Port.Name))
    				}
    				portNames[s.Port.Name] = true
    				if !protocol.Parse(s.Port.Protocol).IsHTTP() && s.GetTls().GetHttpsRedirect() {
    					v = AppendValidation(v, WrapWarning(fmt.Errorf("tls.httpsRedirect should only be used with http servers")))
    				}
    			}
    		}
    
    		return v.Unwrap()
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_waypoint.go

    				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
    				chains = append(chains, httpChain)
    				portMapper.Map[portString] = match.ToChain(httpChain.Name)
    			} else {
    				chains = append(chains, tcpChain)
    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