You are here

public function VclHandler::vclRequestWrapper in Fastly 8.3

Wraps api call to make query via Guzzle.

Parameters

string $url: The uri to use for the request, appended to the host.

array $headers: (optional) An array of headers to send with the request.

array $data: (optional) Data to send with the request.

string $type: (optional) The method to use for the request, defaults to GET.

Return value

\Psr\Http\Message\ResponseInterface vclQuery.

15 calls to VclHandler::vclRequestWrapper()
VclHandler::configureImageOptimizationDefaultConfigOptions in src/VclHandler.php
Configure the image optimization default config options
VclHandler::createResponse in src/VclHandler.php
Creates a new Response Object.
VclHandler::execute in src/VclHandler.php
Main execute function.
VclHandler::getAllAcls in src/VclHandler.php
Get all Acls
VclHandler::getAllDictionaries in src/VclHandler.php
Get all dictionaries.

... See full list

File

src/VclHandler.php, line 1059

Class

VclHandler
Class to control the VCL handling.

Namespace

Drupal\fastly

Code

public function vclRequestWrapper($url, array $headers = [], array $data = [], $type = "GET") {
  return $this->api
    ->vclQuery($url, $data, $type, $headers);
}