getHeaders() public method

Return the headers from the last request
public getHeaders ( ) : array
return array
Exemplo n.º 1
0
 /**
  * Get rate limit remaining from the headers
  *
  * @access public
  * @return mixed
  */
 public function getRateLimitRemaining()
 {
     $header = $this->request->getHeaders();
     return isset($header['X-Ratelimit-Remaining']) ? $header['X-Ratelimit-Remaining'] : 'unknown';
 }