libnick 2025.9.1
A cross-platform base for native Nickvision applications.
|
Functions | |
bool | getWebsiteExists (const std::string &url) noexcept |
Gets whether or not a url points to a valid website. | |
boost::json::value | getJson (const std::string &url) noexcept |
Makes a GET request for json from a url. | |
bool | downloadFile (const std::string &url, const std::filesystem::path &path, const cpr::ProgressCallback &progress={}, bool overwrite=true) noexcept |
Downloads a file to disk. | |
|
noexcept |
Downloads a file to disk.
url | The url of the file to download |
path | The path on disk to save the file |
progress | An optional function to receive progress on the download |
overwrite | Whether or not to overwrite existing files on disk |
|
noexcept |
Makes a GET request for json from a url.
url | The url of the json resource |
|
noexcept |
Gets whether or not a url points to a valid website.
url | The url to check |