comparison 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
comparison
equal deleted inserted replaced
316:180714442770 317:b1f4d1867ab1
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 #include <mutex> 9 #include <mutex>
10 10
11 namespace HTTP { 11 namespace HTTP {
12
13 /* calls libcurl to encode/decode */
14 std::string UrlEncode(const std::string& data);
15 std::string UrlDecode(const std::string& data);
16
17 std::string EncodeParamsList(std::string base, const std::map<std::string, std::string>& params);
12 18
13 enum class Type { 19 enum class Type {
14 Get, 20 Get,
15 Post 21 Post
16 }; 22 };