This topic describes the syntax, parameters, return values, and examples for throttling functions.
limit_rate_after
| Item | Description |
| Syntax | limit_rate_after(n, unit) |
| Description | Specifies the amount of data to transfer before rate limiting begins. Note This function applies to an individual request and is not a global bandwidth limit. |
| Parameters |
|
| Return value | truefalseReturns on success or on failure. |
| Examples | |
limit_rate
| Item | Description |
| Syntax | limit_rate(n, unit) |
| Description | Sets the data transfer rate limit. The minimum rate is 4 KB/s. If you specify a rate lower than 4 KB/s, the limit defaults to 4 KB/s. Note This function applies to an individual request and is not a global bandwidth limit. |
| Parameters |
|
| Return value | truefalseReturns on success or on failure. |
| Examples | |
该文章对您有帮助吗?