Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for IsHTTP (0.15 sec)

  1. pkg/config/gateway/gateway.go

    func IsTLSServer(server *v1alpha3.Server) bool {
    	// to filter out https redirect
    	if server.Tls != nil && !protocol.Parse(server.Port.Protocol).IsHTTP() {
    		return true
    	}
    	return false
    }
    
    // IsHTTPSServerWithTLSTermination returns true if the server is HTTPS with TLS termination
    func IsHTTPSServerWithTLSTermination(server *v1alpha3.Server) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:13:01 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. pkg/config/protocol/instance_test.go

    package protocol_test
    
    import (
    	"testing"
    
    	"istio.io/istio/pkg/config/protocol"
    )
    
    func TestIsHTTP(t *testing.T) {
    	if protocol.UDP.IsHTTP() {
    		t.Errorf("UDP is not HTTP protocol")
    	}
    	if !protocol.GRPC.IsHTTP() {
    		t.Errorf("gRPC is HTTP protocol")
    	}
    }
    
    func TestParse(t *testing.T) {
    	testPairs := []struct {
    		name string
    		out  protocol.Instance
    	}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 11 16:27:16 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. pkg/config/protocol/instance.go

    // IsHTTPOrSniffed is true for protocols that use HTTP as transport protocol, or *can* use it if sniffed to be HTTP
    func (i Instance) IsHTTPOrSniffed() bool {
    	return i.IsHTTP() || i.IsUnsupported()
    }
    
    // IsHTTP is true for protocols that use HTTP as transport protocol
    func (i Instance) IsHTTP() bool {
    	switch i {
    	case HTTP, HTTP2, HTTP_PROXY, GRPC, GRPCWeb:
    		return true
    	default:
    		return false
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 01 02:46:15 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top