filters\RateLimiter addRateLimitHeaders()

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

doc_Yii
2016-10-30 17:02:45
Comments
Leave a Comment

Please login to continue.