getRemainingLimit() public method

Get the remaining limit before the consumer is rate limited.
public getRemainingLimit ( ) : integer
return integer
Beispiel #1
0
 /**
  * Get the headers for the response.
  *
  * @return array
  */
 protected function getHeaders()
 {
     return ['X-RateLimit-Limit' => $this->handler->getThrottleLimit(), 'X-RateLimit-Remaining' => $this->handler->getRemainingLimit(), 'X-RateLimit-Reset' => $this->handler->getRateLimitReset()];
 }