Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for HostHeader (0.38 sec)

  1. 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)
  2. 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)
  3. 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)
  4. pkg/probe/http/http_test.go

    	defer server.Close()
    
    	testCases := map[string]struct {
    		hostHeader     string
    		expectedResult probe.Result
    	}{
    		"success": {successHostHeader, probe.Success},
    		"fail":    {failHostHeader, probe.Failure},
    	}
    	for desc, test := range testCases {
    		headers := http.Header{}
    		headers.Add("Host", test.hostHeader)
    		t.Run(desc+"local", func(t *testing.T) {
    			followNonLocalRedirects := false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:40:08 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. pilot/pkg/security/authz/model/generator.go

    func (hg hostGenerator) permission(key, value string, forTCP bool) (*rbacpb.Permission, error) {
    	if forTCP {
    		return nil, fmt.Errorf("%q is HTTP only", key)
    	}
    
    	return permissionHeader(matcher.HostMatcher(hostHeader, value)), nil
    }
    
    func (hostGenerator) principal(key, value string, forTCP bool, _ bool) (*rbacpb.Principal, error) {
    	return nil, fmt.Errorf("unimplemented")
    }
    
    type pathGenerator struct{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 18:02:42 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

                final String preHeader = "--< ";
                final String postHeader = " >--";
    
                final int headerLen = preHeader.length() + projectKey.length() + postHeader.length();
    
                String prefix = chars('-', Math.max(0, (lineLength - headerLen) / 2)) + preHeader;
    
                String suffix =
                        postHeader + chars('-', Math.max(0, lineLength - headerLen - prefix.length() + preHeader.length()));
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 03 17:49:40 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top