#pragma once #define ON 1 #define OFF 0 #include #include #include #include #include #include #include "progress_event.hpp" #include "json.hpp" void downloadFile(const char *url, const char *output, int api); std::vector> getLinks(const char *url); std::string fetchTitle(const char *url); std::string downloadPage(const char* url, std::vector headers = {}, std::string body = ""); nlohmann::json getRequest(std::string url, std::vector headers = {}, std::string body = "");