/**
  * Function to return a boolean value indicating whether
  * the request was ended in an error state
  *
  * @param  $response - Guzzle response to interpret
  * @return boolean
  */
 public function error(BaseResponse $response)
 {
     return $this->matchesStatus('response.http_status.error', $response->getStatusCode());
 }
示例#2
0
 /**
  * Build a new RequestManager
  *
  * @param Container $app
  * @param Client    $client
  */
 public function __construct(Container $app, \Guzzle\Http\Message\Response $response = null)
 {
     $this->app = $app;
     parent::__construct($response);
 }