function protected function ProviderBase::request

8.x-3.x ProviderBase.php protected ProviderBase::request($url, array $options = [])

Initiates an HTTP request.

Parameters

string $url: The URL to retrieve.

array $options: The options to pass to the HTTP client.

Return value

\Drupal\bootstrap\SerializedResponse A SerializedResponse object.

Class

ProviderBase
CDN Provider base class.

Namespace

Drupal\bootstrap\Plugin\Provider

Source src/Plugin/Provider/ProviderBase.php (line 515)

protected function request($url, array $options = []) {
  $response = Bootstrap::request($url, $options, $exception);
  if ($exception) {
    $this->addCdnException($exception);
  }
  return $response;
}