kayx23 commented on code in PR #13004:
URL: https://github.com/apache/apisix/pull/13004#discussion_r2792375376


##########
docs/en/latest/plugins/limit-count.md:
##########
@@ -49,7 +49,8 @@ You may see the following rate limiting headers in the 
response:
 | rules                   | array[object] | False                              
 |               |                            | A list of rate limiting rules. 
Each rule is an object containing `count`, `time_window`, and `key`.            
                                                                                
                                                                                
                                    |
 | rules.count             | integer | True                                     
 |               | > 0                        | The maximum number of requests 
allowed within a given time interval.                                           
                                                                                
                                                                                
                                  |
 | rules.time_window       | integer | True                                     
 |               | > 0                        | The time interval corresponding 
to the rate limiting `count` in seconds.                                        
                                                                                
                                                                                
                                 |
-| rules.key               | string  | True                                     
 |               |                            | The key to count requests by. 
If the configured key does not exist, the rule will not be executed. The `key` 
is interpreted as a combination of variables, for example: `$http_custom_a 
$http_custom_b`.                                                                
                                                                                
                                                                                
                                                   |
+| rules.key               | string  | True                                     
 |               |                            | The key to count requests by. 
If the configured key does not exist, the rule will not be executed. The `key` 
is interpreted as a combination of variables, for example: `$http_custom_a 
$http_custom_b`.                                                                
                                                                                
                                                                                
                                   |
+| rules.header_prefix     | string  | False                                    
 |               |                            | Prefix for rate limit headers. 
If configured, the response will include `X-{header_prefix}-RateLimit-Limit`, 
`X-{header_prefix}-RateLimit-Remaining`, and 
`X-{header_prefix}-RateLimit-Reset` headers. If not configured, the rule index 
(1-based) will be used as the prefix.                                           
                                                                                
                                                                                
                                                        |

Review Comment:
   ```suggestion
   | rules.header_prefix     | string  | False                                  
   |               |                            | Prefix for rate limit 
headers. If configured, the response will include 
`X-{header_prefix}-RateLimit-Limit`, `X-{header_prefix}-RateLimit-Remaining`, 
and `X-{header_prefix}-RateLimit-Reset` headers. If not configured, the index 
of the rule in the rules array is used as the prefix. For example, headers for 
the first rule will be `X-1-RateLimit-Limit`, `X-1-RateLimit-Remaining`, and 
`X-1-RateLimit-Reset`.                                                          
                                                                                
                                                                                
                                        |
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to