Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for IsHTTP (0.47 sec)

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

    			}
    			if port.Protocol.IsUnsupported() || port.Protocol.IsTCP() {
    				clusters = append(clusters, cb.buildWaypointInboundVIPCluster(proxy, svc, *port, "tcp").build())
    			}
    			if port.Protocol.IsUnsupported() || port.Protocol.IsHTTP() {
    				clusters = append(clusters, cb.buildWaypointInboundVIPCluster(proxy, svc, *port, "http").build())
    			}
    			cfg := cb.sidecarScope.DestinationRule(model.TrafficDirectionInbound, proxy, svc.Hostname).GetRule()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. pilot/pkg/networking/core/listener.go

    				if currentListenerEntry.protocol.IsHTTP() {
    					conflictType = TCPOverHTTP
    				} else if currentListenerEntry.protocol.IsTCP() {
    					conflictType = TCPOverTCP
    				} else {
    					conflictType = TCPOverAuto
    				}
    			}
    
    		case istionetworking.ListenerProtocolAuto:
    			if currentListenerEntry != nil {
    				if currentListenerEntry.protocol.IsHTTP() {
    					conflictType = AutoOverHTTP
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    			continue
    		}
    
    		configs = append(configs, types.NamespacedName{Name: modelSvc.Hostname.String(), Namespace: svc.Namespace})
    
    		for _, p := range modelSvc.Ports {
    			if !p.Protocol.IsHTTP() {
    				pureHTTP = false
    				break
    			}
    		}
    	}
    
    	configsUpdated := sets.New[model.ConfigKey]()
    	for _, config := range configs {
    		if !pureHTTP {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/cluster_traffic_policy.go

    	// uses downstream protocol. Therefore if the client upgrades connection to http2,
    	// the server will send h2 stream to the application,even though the application only
    	// supports http 1.1.
    	if port != nil && !port.Protocol.IsHTTP() {
    		return false
    	}
    
    	return mesh.H2UpgradePolicy == meshconfig.MeshConfig_UPGRADE
    }
    
    func (cb *ClusterBuilder) applyDefaultConnectionPool(cluster *cluster.Cluster) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. 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)
  8. pilot/pkg/networking/core/gateway.go

    	wasm := builder.push.WasmPluginsByListenerInfo(builder.node, model.WasmPluginListenerInfo{
    		Port:  opts.port,
    		Class: istionetworking.ListenerClassGateway,
    	}, model.WasmPluginTypeNetwork)
    	if p.IsHTTP() {
    		// We have a list of HTTP servers on this port. Build a single listener for the server port.
    		port := &networking.Port{Number: port.Number, Protocol: port.Protocol}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top