Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for HostHeader (0.5 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. pkg/test/echo/server/forwarder/config.go

    	c.headers = common.GetHeaders(c.Request)
    	c.hboneHeaders = common.ProtoToHTTPHeaders(c.Request.Hbone.GetHeaders())
    
    	// Extract the host from the headers and then remove it.
    	c.hostHeader = c.headers.Get(hostHeader)
    	c.headers.Del(hostHeader)
    
    	c.urlHost, c.urlPath = splitPath(c.Request.Url)
    
    	c.method = c.Request.Method
    	if c.method == "" {
    		c.method = "GET"
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. pkg/test/echo/server/forwarder/websocket.go

    	echo.ForwarderURLField.WriteForRequest(&outBuffer, requestID, req.Url)
    
    	// Set the special header to trigger the upgrade to WebSocket.
    	wsReq := cfg.headers.Clone()
    	if len(cfg.hostHeader) > 0 {
    		echo.HostField.WriteForRequest(&outBuffer, requestID, hostHeader)
    	}
    	writeForwardedHeaders(&outBuffer, requestID, wsReq)
    	common.SetWebSocketHeader(wsReq)
    
    	if req.Message != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 11 16:27:16 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  6. 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)
  7. pkg/test/echo/server/forwarder/grpc.go

    	defer cancel()
    
    	// Add headers to the request context.
    	outMD := make(metadata.MD)
    	for k, v := range cfg.headers {
    		// Exclude the Host header from the GRPC context.
    		if !strings.EqualFold(hostHeader, k) {
    			outMD.Set(k, v...)
    		}
    	}
    	outMD.Set("X-Request-Id", strconv.Itoa(requestID))
    	ctx = metadata.NewOutgoingContext(ctx, outMD)
    
    	var outBuffer bytes.Buffer
    	grpcReq := &proto.EchoRequest{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 14 19:45:43 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. pkg/test/echo/server/forwarder/xds.go

    	address := cfg.Request.Url
    
    	// Connect to the GRPC server.
    	ctx, cancel := context.WithTimeout(context.Background(), common.ConnectionTimeout)
    	defer cancel()
    	opts = append(opts, security, grpc.WithAuthority(cfg.hostHeader))
    	return grpc.DialContext(ctx, address, opts...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 10 18:09:08 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top