Mercurial > minori
diff include/core/http.h @ 317:b1f4d1867ab1
services: VERY initial Kitsu support
it only supports user authentication for now, but it's definitely
a start.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 04:07:10 -0400 |
parents | b1f625b0227c |
children |
line wrap: on
line diff
--- a/include/core/http.h Tue Jun 11 15:11:09 2024 -0400 +++ b/include/core/http.h Wed Jun 12 04:07:10 2024 -0400 @@ -10,6 +10,12 @@ namespace HTTP { +/* calls libcurl to encode/decode */ +std::string UrlEncode(const std::string& data); +std::string UrlDecode(const std::string& data); + +std::string EncodeParamsList(std::string base, const std::map<std::string, std::string>& params); + enum class Type { Get, Post