28#include <boost/json.hpp>
29#include <cpr/callback.h>
45 boost::json::value
getJson(
const std::string& url);
53 bool downloadFile(
const std::string& url,
const std::filesystem::path& path,
const cpr::ProgressCallback& progress = {},
bool overwrite =
true);
bool getWebsiteExists(const std::string &url)
Gets whether or not a url points to a valid website.
bool downloadFile(const std::string &url, const std::filesystem::path &path, const cpr::ProgressCallback &progress={}, bool overwrite=true)
Downloads a file to disk.
boost::json::value getJson(const std::string &url)
Makes a GET request for json from a url.