Dingo\Api\Http\RateLimit\Handler::getThrottleLimit PHP Method

getThrottleLimit() public method

Get the limit of the throttle used.
public getThrottleLimit ( ) : integer
return integer
    public function getThrottleLimit()
    {
        return $this->throttle->getLimit();
    }

Usage Example

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()];
 }