Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HostHeader (0.09 sec)

  1. 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)
  2. 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)
Back to top