Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for HostHeader (1.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  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. pkg/test/echo/server/forwarder/util.go

    	"golang.org/x/net/proxy"
    
    	"istio.io/istio/pkg/hbone"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/test/echo"
    	"istio.io/istio/pkg/test/echo/common"
    	"istio.io/istio/pkg/test/echo/proto"
    )
    
    const (
    	hostHeader = "Host"
    )
    
    var fwLog = log.RegisterScope("forwarder", "echo clientside")
    
    func writeForwardedHeaders(out *bytes.Buffer, requestID int, header http.Header) {
    	for key, values := range header {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. 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)
  8. 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