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;
$this->config =
$this->defaultConfig;
$this->
parseOptions($options);
} /**
* Sends an HTTP request to the specified $url. If this is a relative
* URL, it will be merged with $this->baseURI to form a complete URL.
*
* @param string $method
*/