This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new f6d81cd  docs: fix markdown style (#4018)
f6d81cd is described below

commit f6d81cdc5cc698a4bb6583dee10228ad6938564f
Author: Ryan Yin <[email protected]>
AuthorDate: Sat Apr 10 13:20:31 2021 +0800

    docs: fix markdown style (#4018)
---
 docs/en/latest/plugins/limit-count.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/en/latest/plugins/limit-count.md 
b/docs/en/latest/plugins/limit-count.md
index 7e7c309..3b23419 100644
--- a/docs/en/latest/plugins/limit-count.md
+++ b/docs/en/latest/plugins/limit-count.md
@@ -38,7 +38,7 @@ Limit request rate by a fixed number of requests in a given 
time window.
 | Name                | Type    | Requirement                             | 
Default       | Valid                                                           
                                        | Description                           
                                                                                
                                                                                
                                                                                
                     |
 | ------------------- | ------- | --------------------------------------- | 
------------- | 
-------------------------------------------------------------------------------------------------------
 | 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 |
 | count               | integer | required                                |    
           | count > 0                                                          
                                     | the specified number of requests 
threshold.                                                                      
                                                                                
                                                                                
                          |
-            | time_window         | integer | required                    |    
           | time_window > 0                                                    
                                     | the time window in seconds before the 
request count is reset.                                                         
                                                                                
                                                                                
                     |
+| time_window         | integer | required                    |               
| time_window > 0                                                               
                          | the time window in seconds before the request count 
is reset.                                                                       
                                                                                
                                                                                
       |
 | key                 | string  | optional                                | 
"remote_addr" | ["remote_addr", "server_addr", "http_x_real_ip", 
"http_x_forwarded_for", "consumer_name", "service_id"] | The user specified key 
to limit the count. <br /> Now accept those as key: "remote_addr"(client's IP), 
"server_addr"(server's IP), "X-Forwarded-For/X-Real-IP" in request header, 
"consumer_name"(consumer's username) and "service_id".                          
                                         |
 | rejected_code       | integer | optional                                | 
503           | [200,...,599]                                                   
                                        | The HTTP status code returned when 
the request exceeds the threshold is rejected, default 503.                     
                                                                                
                                                                                
                        |
 | policy              | string  | optional                                | 
"local"       | ["local", "redis", "redis-cluster"]                             
                                        | The rate-limiting policies to use for 
retrieving and incrementing the limits. Available values are `local`(the 
counters will be stored locally in-memory on the node) and `redis`(counters are 
stored on a Redis server and will be shared across the nodes, usually use it to 
do the global speed limit). |

Reply via email to