aboutsummaryrefslogtreecommitdiff
path: root/include/curl.hpp
blob: 7c0ddbe050263ad6271096f92d8a0ba9a7013c48 (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
#ifndef SIBS_CURL_HPP
#define SIBS_CURL_HPP

#include "Result.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 char *filepath);
        static HttpResult get(const char *url);
    };
}

#endif //SIBS_CURL_HPP