28#include <boost/json.hpp>
44 boost::json::value
fetchJson(
const std::string& url);
bool downloadFile(const std::string &url, const std::filesystem::path &path, const CurlProgressFunction &progress={}, bool overwrite=true)
Downloads a file to disk.
bool getWebsiteExists(const std::string &url)
Gets whether or not a url points to a valid website.
boost::json::value fetchJson(const std::string &url)
Fetches a json string from a url.
std::function< int(curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow)> CurlProgressFunction
Definition curleasy.h:34