Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetPathSeparatedPrefix (0.16 sec)

  1. pilot/pkg/networking/core/route/route.go

    				// remove the prefix
    				action.RegexRewrite = &matcher.RegexMatchAndSubstitute{
    					Pattern: &matcher.RegexMatcher{
    						Regex: fmt.Sprintf(`^%s(/?)(.*)`, regexp.QuoteMeta(out.Match.GetPathSeparatedPrefix())),
    					},
    					// hold `/` in case the entire path is removed
    					Substitution: `/\2`,
    				}
    			} else {
    				action.PrefixRewrite = uri
    			}
    		}
    		if in.Rewrite.GetAuthority() != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
Back to top