aboutsummaryrefslogtreecommitdiff
path: root/include/curl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/curl.hpp')
-rw-r--r--include/curl.hpp12
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);
};
}