mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-08 19:41:49 +00:00
13 lines
No EOL
645 B
C++
13 lines
No EOL
645 B
C++
#pragma once
|
|
|
|
#define ON 1
|
|
#define OFF 0
|
|
|
|
#include "json.hpp"
|
|
|
|
std::vector<std::uint8_t> downloadFile(const char *url, const char *output = "", int api = OFF);
|
|
std::vector<std::pair<std::string, std::string>> getLinks(const char *url);
|
|
std::string fetchTitle(const char *url);
|
|
std::string downloadPage(const char* url, std::vector<std::string> headers = {}, std::string body = "");
|
|
std::vector<std::uint8_t> downloadPageBinary(const char* url, std::vector<std::string> headers = {}, std::string body = "");
|
|
nlohmann::ordered_json getRequest(std::string url, std::vector<std::string> headers = {}, std::string body = ""); |