Move the download method from the downloader to networkTools.

The download method is a simple method to download content.
It use curl to download the content instead of aria.
This commit is contained in:
Matthieu Gautier
2018-10-19 11:47:55 +02:00
parent a73ef23f6e
commit ad69fdd8c0
5 changed files with 37 additions and 42 deletions

View File

@ -44,6 +44,7 @@ namespace kiwix
{
std::map<std::string, std::string> getNetworkInterfaces();
std::string getBestPublicIp();
std::string download(const std::string& url);
}
#endif

View File

@ -89,14 +89,6 @@ class Downloader
void close();
/**
* Download a content.
*
* @param url the url to download
* @return the content downloaded.
*/
DownloadedFile download(const std::string& url);
Download* startDownload(const std::string& uri);
Download* getDownload(const std::string& did);