You are here

public function HttpClientException::getResponse in Http Client 7.2

Same name and namespace in other branches
  1. 6.2 includes/HttpClient.inc \HttpClientException::getResponse()

Gets the response object, if any.

File

includes/HttpClient.inc, line 302

Class

HttpClientException
Exception that's used to pass information about the response when a operation fails.

Code

public function getResponse() {
  $response = $this->response;
  if (is_object($response)) {
    $response = clone $response;
  }
  return $response;
}