blob: 16b3e529feaa08f61d3297c44a1a98417f28a979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef SIBS_CURL_HPP
#define SIBS_CURL_HPP
#include "Result.hpp"
#include "FileUtil.hpp"
#include <string>
namespace sibs
{
class HttpResult
{
public:
long httpCode;
bool success;
std::string str;
};
class curl
{
public:
static sibs::Result<bool> downloadFile(const char *url, const _tinydir_char_t *filepath);
static HttpResult get(const char *url);
};
}
#endif //SIBS_CURL_HPP
|