$request
$request : \Teknoo\Curl\Request
Class RequestGenerator A service class for generating Curl\Request objects with an initial set of CURLOPT_* options set.
$request : \Teknoo\Curl\Request
$options : \Teknoo\Curl\Options
__construct(\Teknoo\Curl\OptionsInterface $options = null, string $args = '')
\Teknoo\Curl\OptionsInterface | $options | |
string | $args |
setRequest(\Teknoo\Curl\RequestInterface $request) : $this
To define the original request to use as "model" in the service. It will be cloned at each call of getRequest().
\Teknoo\Curl\RequestInterface | $request |
getRequest() : \Teknoo\Curl\Request
Generate a Request object with preset options.
a cURL Request object
getOptions() : \Teknoo\Curl\Options
Return the options manager user here.
setOptions(\Teknoo\Curl\OptionsInterface $options) : $this
To change the options manager to use in this service.
\Teknoo\Curl\OptionsInterface | $options |