public function BadResponseException::setResponse

Set the response that caused the exception

Parameters

Response $response Response to set:

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Exception/BadResponseException.php, line 60

Class

BadResponseException
Http request exception thrown when a bad response is received

Namespace

Guzzle\Http\Exception

Code

public function setResponse(Response $response) {
  $this->response = $response;
}