Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequestException.php

function RequestException::hasResponse

Check if a response was received

1 method overrides RequestException::hasResponse()
BadResponseException::hasResponse in vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php
Current exception and the ones that extend it will always have a response.

File

vendor/guzzlehttp/guzzle/src/Exception/RequestException.php, line 133

Class

RequestException
HTTP Request exception

Namespace

GuzzleHttp\Exception

Code

public function hasResponse() : bool {
    return $this->response !== null;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal