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