diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-28 01:02:16 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-28 01:27:11 +0100 |
commit | 0cf81a4421f9a4d267245a3041508b617a01d68d (patch) | |
tree | 1eb816c05cc005abe317439516ba6b06c4dfbdfb /include/curl.hpp | |
parent | 5100c0659e39dd82a3b979b859704e7dbf01e2f1 (diff) |
Add curl get, add packages file
Diffstat (limited to 'include/curl.hpp')
-rw-r--r-- | include/curl.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/curl.hpp b/include/curl.hpp index 49dfe12..7c0ddbe 100644 --- a/include/curl.hpp +++ b/include/curl.hpp @@ -2,13 +2,23 @@ #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 Result<bool> downloadFile(const char *url, const char *filepath); + static sibs::Result<bool> downloadFile(const char *url, const char *filepath); + static HttpResult get(const char *url); }; } |