/**
* Takes an array of options to set the following possible class properties:
*
* - baseURI
* - timeout
* - any other request options to use as defaults.
*/
public function __construct(App
$config, URI
$uri, ?ResponseInterface
$response = null, array
$options =
[]) { if (!
function_exists('curl_version'
)) { throw HTTPException::
forMissingCurl(); // @codeCoverageIgnore
} parent::
__construct('GET',
$uri);
$this->responseOrig =
$response ??
new Response(config(App::
class));
$this->baseURI =
$uri->
useRawQueryString();
$this->defaultOptions =
$options;
/** @var ConfigCURLRequest|null $configCURLRequest */
$configCURLRequest =
config(ConfigCURLRequest::
class);
$this->shareOptions =
$configCURLRequest->shareOptions ?? true;