src/Request/CurlRequestUtil.php
public function createCurlHandle($url)
    {
        $handle = $this->handle ?: new CurlRequest();
        $handle->init($url);
        $handle->setOption(CURLOPT_RETURNTRANSFER, true);
        $handle->setOption(CURLOPT_TIMEOUT, 10);

        return $handle;
    }
public function createCurlHandle($url)
    {
        $handle = $this->handle ?: new CurlRequest();
        $handle->init($url);
        $handle->setOption(CURLOPT_RETURNTRANSFER, true);
        $handle->setOption(CURLOPT_TIMEOUT, 10);

        return $handle;
    }
public function createCurlHandle ( $ url ) { $ handle = $ this -> handle ? : new CurlRequest ( ) ; $ handle -> init ( $ url ) ; $ handle -> setOption ( CURLOPT_RETURNTRANSFER , true ) ; $ handle -> setOption ( CURLOPT_TIMEOUT , 10 ) ; return $ handle ; }
Create the curl handle.

@param $url

@return CurlRequest
Create the curl handle .