Temporarily make function private for now

This commit is contained in:
Zach Borboa
2021-03-11 22:59:04 -05:00
parent ff2a183c34
commit ca1c6fb801
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -195,6 +195,7 @@ More examples are available under [/examples](https://github.com/php-curl-class/
Curl::__construct($base_url = null)
Curl::__destruct()
Curl::__get($name)
Curl::_fastDownload($url, $filename, $connections = 4) {
Curl::attemptRetry()
Curl::beforeSend($callback)
Curl::buildPostData($data)
@@ -204,7 +205,6 @@ Curl::complete($callback)
Curl::delete($url, $query_parameters = array(), $data = array())
Curl::disableTimeout()
Curl::download($url, $mixed_filename)
Curl::fastDownload($url, $filename, $connections = 4)
Curl::error($callback)
Curl::exec($ch = null)
Curl::execDone()
+2 -2
View File
@@ -335,14 +335,14 @@ class Curl
/**
* Fast download
*
* @access public
* @access private
* @param $url
* @param $filename
* @param $connections
*
* @return boolean
*/
public function fastDownload($url, $filename, $connections = 4) {
public function _fastDownload($url, $filename, $connections = 4) {
// First we need to retrive the 'Content-Length' header.
// Use GET because not all hosts support HEAD requests.
$this->setOpts([