$handle
$handle : resource
the cURL handle resource for this request.
Class Request An OO wrapper on the curl_* functions in PHP to manage and execute HTTP request via cUrl.
$options : \Teknoo\Curl\Options
__construct(\Teknoo\Curl\Options $Options, string $url = null)
Instantiate a new cURL Request object.
\Teknoo\Curl\Options | $Options | Validator to check option used to perform the request |
string | $url | string URL to initialize the cURL handle with |
setOption(integer $option, mixed $value) : $this
Alias of the curl_setopt function.
integer | $option | Option defined in http://php.net/manual/function.curl-setopt.php |
mixed | $value |
if the option does not exist or if it is invalid
setOptionArray(array $options) : $this
Alias of the curl_setopt_array function.
array | $options | defined in http://php.net/manual/function.curl-setopt-array.php |