Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for redirectCode (0.09 sec)

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