Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for redirectCode (0.37 sec)

  1. tests/fuzz/testdata/FuzzConfigValidation2/fuzz_config_validation2.dict

    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 07 17:07:53 UTC 2021
    - 2K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/gateway/testdata/http.yaml.golden

        route:
        - destination:
            host: httpbin.default.svc.domain.suffix
            port:
              number: 80
      - name: default.redirect.0
        redirect:
          port: 8080
          redirectCode: 302
          scheme: https
          uri: /replace-full
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      annotations:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 11 20:21:53 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/route_test.go

    		Http: []*networking.HTTPRoute{
    			{
    				Redirect: &networking.HTTPRedirect{
    					Uri:          "example.org",
    					Authority:    "some-authority.default.svc.cluster.local",
    					RedirectCode: 308,
    				},
    			},
    		},
    	},
    }
    
    var virtualServiceWithRedirectPathPrefix = config.Config{
    	Meta: config.Meta{
    		GroupVersionKind: gvk.VirtualService,
    		Name:             "acme",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/route/route.go

    			action.Redirect.PortRedirect = 0
    		}
    		if action.Redirect.PortRedirect == 443 && scheme == "https" {
    			action.Redirect.PortRedirect = 0
    		}
    	}
    
    	switch redirect.RedirectCode {
    	case 0, 301:
    		action.Redirect.ResponseCode = route.RedirectAction_MOVED_PERMANENTLY
    	case 302:
    		action.Redirect.ResponseCode = route.RedirectAction_FOUND
    	case 303:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  5. pkg/config/validation/validation.go

    		return errors.New("redirect must specify URI, authority, scheme, or port")
    	}
    
    	if redirect.RedirectCode != 0 {
    		if redirect.RedirectCode < 300 || redirect.RedirectCode > 399 {
    			return fmt.Errorf("%d is not a valid redirect code, must be 3xx", redirect.RedirectCode)
    		}
    	}
    	if redirect.Scheme != "" && redirect.Scheme != "http" && redirect.Scheme != "https" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  6. pkg/config/validation/validation_test.go

    			redirect: &networking.HTTPRedirect{
    				Uri:          "t",
    				Authority:    "",
    				RedirectCode: 299,
    			},
    			valid: false,
    		},
    		{
    			name: "too large redirect code",
    			redirect: &networking.HTTPRedirect{
    				Uri:          "t",
    				Authority:    "",
    				RedirectCode: 400,
    			},
    			valid: false,
    		},
    		{
    			name: "empty authority",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      }
    
      private fun testResponseRedirectedWithPost(
        redirectCode: Int,
        transferKind: TransferKind,
      ) {
        server.enqueue(
          MockResponse(
            code = redirectCode,
            headers = headersOf("Location", "/page2"),
            body = "This page has moved!",
          ),
        )
        server.enqueue(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  8. pilot/pkg/config/kube/gateway/conversion.go

    	if filter == nil {
    		return nil
    	}
    	resp := &istio.HTTPRedirect{}
    	if filter.StatusCode != nil {
    		// Istio allows 301, 302, 303, 307, 308.
    		// Gateway allows only 301 and 302.
    		resp.RedirectCode = uint32(*filter.StatusCode)
    	}
    	if filter.Hostname != nil {
    		resp.Authority = string(*filter.Hostname)
    	}
    	if filter.Scheme != nil {
    		// Both allow http and https
    		resp.Scheme = *filter.Scheme
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  9. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                                the URL with this value.
                              maximum: 4294967295
                              minimum: 0
                              type: integer
                            redirectCode:
                              description: On a redirect, Specifies the HTTP status code
                                to use in the redirect response.
                              maximum: 4294967295
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:42 UTC 2024
    - 671.7K bytes
    - Viewed (0)
  10. cni/pkg/plugin/sidecar_redirect.go

    	var valErr error
    
    	redir := &Redirect{}
    	redir.targetPort = defaultRedirectToPort
    	isFound, redir.redirectMode, valErr = getAnnotationOrDefault("redirectMode", pi.Annotations)
    	if valErr != nil {
    		return nil, fmt.Errorf("annotation value error for value %s; annotationFound = %t: %v",
    			"redirectMode", isFound, valErr)
    	}
    
    	if pi.ProxyUID != nil && *pi.ProxyUID != 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top