addRateLimitHeaders() public method
Adds the rate limit headers to the response
public void addRateLimitHeaders ( $response, $limit, $remaining, $reset ) | ||
---|---|---|
$response | yii\web\Response | |
$limit | integer |
The maximum number of allowed requests during a period |
$remaining | integer |
The remaining number of allowed requests within the current period |
$reset | integer |
The number of seconds to wait before having maximum number of allowed requests again |
Please login to continue.