- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isInternalHeader (0.21 sec)
-
pkg/config/validation/virtualservice.go
errs = appendErrors(errs, errors.New("HTTP route cannot contain both mirror and mirrors")) } return errs } // isInternalHeader returns true if a header refers to an internal value that cannot be modified by Envoy func isInternalHeader(headerKey string) bool { return strings.HasPrefix(headerKey, ":") || strings.EqualFold(headerKey, "host") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:27 UTC 2024 - 9.3K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route.go
RequestHeadersToRemove []string ResponseHeadersToRemove []string Authority string } // isInternalHeader returns true if a header refers to an internal value that cannot be modified by Envoy func isInternalHeader(headerKey string) bool { return strings.HasPrefix(headerKey, ":") || strings.EqualFold(headerKey, "host") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 56.1K bytes - Viewed (0) -
pkg/config/validation/validation.go
func ValidateHTTPHeaderWithAuthorityOperationName(name string) error { if name == "" { return fmt.Errorf("header name cannot be empty") } // Authority header is validated later if isInternalHeader(name) && !isAuthorityHeader(name) { return fmt.Errorf(`invalid header %q: header cannot have ":" prefix`, name) } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)