Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for HostHeader (0.26 sec)

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

    				{
    					Name: "a",
    					Call: simulation.Call{
    						Port:       80,
    						HostHeader: "a.example.com",
    						Protocol:   simulation.HTTP,
    					},
    					Result: simulation.Result{ClusterMatched: "outbound|80||a.default"},
    				},
    				{
    					Name: "b",
    					Call: simulation.Call{
    						Port:       80,
    						HostHeader: "b.example.com",
    						Protocol:   simulation.HTTP,
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 18:27:40 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/serviceentry_simulation_test.go

    						Port:       80,
    						HostHeader: "istio.io",
    						Protocol:   simulation.HTTP,
    					},
    					Result: simulation.Result{
    						ListenerMatched: "0.0.0.0_80",
    						ClusterMatched:  "outbound|80||istio.io",
    					},
    				},
    				{
    					Name: "HTTPS call",
    					Call: simulation.Call{
    						Address:    "240.240.91.120",
    						Port:       443,
    						HostHeader: "istio.io",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 21:06:06 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/sidecar_simulation_test.go

    			{Port: port, Protocol: simulation.HTTP, TLS: simulation.TLS, HostHeader: "foo"},
    			{Port: port, Protocol: simulation.HTTP, TLS: simulation.TLS, HostHeader: "foo", Alpn: "http/1.1"},
    			{Port: port, Protocol: simulation.TCP, TLS: simulation.Plaintext, HostHeader: "foo"},
    			{Port: port, Protocol: simulation.HTTP2, TLS: simulation.TLS, HostHeader: "foo"},
    		} {
    			suffix := ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  4. pilot/pkg/simulation/traffic.go

    }
    
    func (c Call) FillDefaults() Call {
    	if c.Headers == nil {
    		c.Headers = http.Header{}
    	}
    	if c.HostHeader != "" {
    		c.Headers["Host"] = []string{c.HostHeader}
    	}
    	// For simplicity, set SNI automatically for TLS traffic.
    	if c.Sni == "" && (c.TLS == TLS) {
    		c.Sni = c.HostHeader
    	}
    	if c.Path == "" {
    		c.Path = "/"
    	}
    	if c.TLS == "" {
    		c.TLS = Plaintext
    	}
    	if c.Address == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. tests/integration/pilot/multiplecontrolplanes/main_test.go

    						HTTP: echo.HTTP{
    							Headers: HostHeader(apps.External.All[0].Config().DefaultHostHeader),
    						},
    						Port:   echo.Port{Name: "http", ServicePort: 80},
    						Scheme: scheme.HTTP,
    						Check: check.And(
    							check.ErrorOrStatus(tc.statusCode),
    						),
    					})
    				})
    			}
    		})
    }
    
    func HostHeader(header string) http.Header {
    	return headers.New().WithHost(header).Build()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. pilot/pkg/security/authz/model/model.go

    	// Internal names used to generate corresponding Envoy matcher.
    	methodHeader = ":method"
    	pathMatcher  = "path-matcher"
    	hostHeader   = ":authority"
    )
    
    type rule struct {
    	key       string
    	values    []string
    	notValues []string
    	g         generator
    	// This generator aggregates value predicates
    	extended extendedGenerator
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 10:39:25 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/config.go

    		ns = "default"
    	}
    	return []string{
    		c.Service,
    		c.Service + "." + ns,
    		c.Service + "." + ns + ".svc",
    		c.ClusterLocalFQDN(),
    	}
    }
    
    // HostHeader returns the Host header that will be used for calls to this service.
    func (c Config) HostHeader() string {
    	if c.DefaultHostHeader != "" {
    		return c.DefaultHostHeader
    	}
    	return c.ClusterLocalFQDN()
    }
    
    func (c Config) IsHeadless() bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  8. tests/integration/pilot/mirror_test.go

    func TestMirroringExternalService(t *testing.T) {
    	header := ""
    	if len(apps.External.All) > 0 {
    		header = apps.External.All.Config().HostHeader()
    	}
    	runMirrorTest(t, mirrorTestOptions{
    		mirrorHost: header,
    		cases: []testCaseMirror{
    			{
    				name:                "mirror-external",
    				absent:              true,
    				percentage:          100.0,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. tests/integration/pilot/common/routing.go

    				opts: echo.CallOptions{
    					To: t.Apps.B,
    					Port: echo.Port{
    						Name: "http",
    					},
    					HTTP: echo.HTTP{
    						Path:            "/foo",
    						Headers:         HostHeader("b"),
    						FollowRedirects: false,
    					},
    
    					Count: 1,
    					Check: check.And(
    						check.Status(http.StatusMovedPermanently),
    						// Note: there is no "80" added, as its already the protocol default
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  10. pkg/test/echo/server/forwarder/http.go

    	}
    
    	// Use raw path, we don't want golang normalizing anything since we use this for testing purposes
    	httpReq.URL.Opaque = cfg.urlPath
    
    	// Use the host header as the host.
    	httpReq.Host = cfg.hostHeader
    
    	// Copy the headers.
    	httpReq.Header = cfg.headers.Clone()
    	writeForwardedHeaders(&outBuffer, requestID, cfg.headers)
    
    	// Propagate previous response cookies if any
    	if cfg.PropagateResponse != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top