mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-05 05:27:35 +08:00
docs: fix markdown render issue in the example (#5390)
This commit is contained in:
parent
a0efeca194
commit
5ea64045d5
docs
@ -41,7 +41,7 @@ limit request rate using the "leaky bucket" method.
|
|||||||
| rate | integer | required | | rate > 0 | the specified request rate (number per second) threshold. Requests exceeding this rate (and below `burst`) will get delayed to conform to the rate. |
|
| rate | integer | required | | rate > 0 | the specified request rate (number per second) threshold. Requests exceeding this rate (and below `burst`) will get delayed to conform to the rate. |
|
||||||
| burst | integer | required | | burst >= 0 | the number of excessive requests per second allowed to be delayed. Requests exceeding this hard limit will get rejected immediately. |
|
| burst | integer | required | | burst >= 0 | the number of excessive requests per second allowed to be delayed. Requests exceeding this hard limit will get rejected immediately. |
|
||||||
| key_type | string | optional | "var" | ["var", "var_combination"] | the type of key. |
|
| key_type | string | optional | "var" | ["var", "var_combination"] | the type of key. |
|
||||||
| key | string | required | | | the user specified key to limit the rate. If the `key_type` is "var", the key will be treated as a name of variable, like "remote_addr" or "consumer_name". If the `key_type` is "var_combination", the key will be a combination of variables, like "$remote_addr|$consumer_name". |
|
| key | string | required | | | the user specified key to limit the rate. If the `key_type` is "var", the key will be treated as a name of variable, like "remote_addr" or "consumer_name". If the `key_type` is "var_combination", the key will be a combination of variables, like "$remote_addr $consumer_name". |
|
||||||
| rejected_code | integer | optional | 503 | [200,...,599] | The HTTP status code returned when the request exceeds the threshold is rejected. |
|
| rejected_code | integer | optional | 503 | [200,...,599] | The HTTP status code returned when the request exceeds the threshold is rejected. |
|
||||||
| rejected_msg | string | optional | | non-empty | The response body returned when the request exceeds the threshold is rejected. |
|
| rejected_msg | string | optional | | non-empty | The response body returned when the request exceeds the threshold is rejected. |
|
||||||
| nodelay | boolean | optional | false | | If nodelay flag is true, bursted requests will not get delayed |
|
| nodelay | boolean | optional | false | | If nodelay flag is true, bursted requests will not get delayed |
|
||||||
|
@ -41,7 +41,7 @@ title: limit-req
|
|||||||
| rate | integer | 必须 | | rate > 0 | 指定的请求速率(以秒为单位),请求速率超过 `rate` 但没有超过 (`rate` + `brust`)的请求会被加上延时。 |
|
| rate | integer | 必须 | | rate > 0 | 指定的请求速率(以秒为单位),请求速率超过 `rate` 但没有超过 (`rate` + `brust`)的请求会被加上延时。 |
|
||||||
| burst | integer | 必须 | | burst >= 0 | 请求速率超过 (`rate` + `brust`)的请求会被直接拒绝。 |
|
| burst | integer | 必须 | | burst >= 0 | 请求速率超过 (`rate` + `brust`)的请求会被直接拒绝。 |
|
||||||
| key_type | string | 可选 | "var" | ["var", "var_combination"] | key 的类型 |
|
| key_type | string | 可选 | "var" | ["var", "var_combination"] | key 的类型 |
|
||||||
| key | string | 必须 | | | 用来做请求计数的依据。如果 `key_type` 为 "var",那么 key 会被当作变量名称,如 "remote_addr" 和 "consumer_name"。如果 `key_type` 为 "var_combination",那么 key 会当作变量组合,如 "$remote_addr|$consumer_name"。 |
|
| key | string | 必须 | | | 用来做请求计数的依据。如果 `key_type` 为 "var",那么 key 会被当作变量名称,如 "remote_addr" 和 "consumer_name"。如果 `key_type` 为 "var_combination",那么 key 会当作变量组合,如 "$remote_addr $consumer_name"。 |
|
||||||
| rejected_code | integer | 可选 | 503 | [200,...,599] | 当请求超过阈值被拒绝时,返回的 HTTP 状态码。 |
|
| rejected_code | integer | 可选 | 503 | [200,...,599] | 当请求超过阈值被拒绝时,返回的 HTTP 状态码。 |
|
||||||
| rejected_msg | string | 可选 | | 非空 | 当请求超过阈值被拒绝时,返回的响应体。 |
|
| rejected_msg | string | 可选 | | 非空 | 当请求超过阈值被拒绝时,返回的响应体。 |
|
||||||
| nodelay | boolean | 可选 | false | | 如果 nodelay 为 true, 请求速率超过 `rate` 但没有超过 (`rate` + `brust`)的请求不会加上延迟, 如果是 false,则会加上延迟。 |
|
| nodelay | boolean | 可选 | false | | 如果 nodelay 为 true, 请求速率超过 `rate` 但没有超过 (`rate` + `brust`)的请求不会加上延迟, 如果是 false,则会加上延迟。 |
|
||||||
|
Loading…
Reference in New Issue
Block a user