Add clarification for route match behavior

pull/19363/head
Chris S. Kim 2023-10-25 10:40:41 -04:00
parent e414cbee4a
commit dba8d6721e
3 changed files with 3 additions and 1 deletions

View File

@ -418,6 +418,7 @@ type InstanceLevelRateLimits struct {
RequestsMaxBurst int `alias:"requests_max_burst"`
// Routes is a list of rate limits applied to specific routes.
// For a given request, the first matching route will be applied, if any.
// Overrides any top-level configuration.
Routes []InstanceLevelRouteRateLimits
}

View File

@ -341,6 +341,7 @@ type InstanceLevelRateLimits struct {
RequestsMaxBurst int `alias:"requests_max_burst"`
// Routes is a list of rate limits applied to specific routes.
// For a given request, the first matching route will be applied, if any
// Overrides any top-level configuration.
Routes []InstanceLevelRouteRateLimits
}

View File

@ -649,7 +649,7 @@ Specifies a list of rate limiting configurations to apply to specific routes to
- `PathPrefix`
- `PathRegex`
Refer to [Examples](#enable-request-rate-limit-on-a-prefixed-path) for example configurations.
For a given request, the first matching route will be applied, if any. Refer to [Examples](#enable-request-rate-limit-on-a-prefixed-path) for example configurations.
#### Values