summaryrefslogtreecommitdiff
path: root/src/discord/httpclient.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-08-12 18:35:58 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-08-12 18:35:58 -0400
commit6a5ecb4d9584f7276cf1d592c95811a66943f61c (patch)
tree2c09268db37461ce9e1882789183c508bb36dd4a /src/discord/httpclient.hpp
parentdc28eae95a46c3079fcc76b3425ffa37844dd37d (diff)
parentf60cea2216dd9677cb9105364cdaa778a0c187db (diff)
downloadabaddon-portaudio-6a5ecb4d9584f7276cf1d592c95811a66943f61c.tar.gz
abaddon-portaudio-6a5ecb4d9584f7276cf1d592c95811a66943f61c.zip
Merge branch 'attachments'
Diffstat (limited to 'src/discord/httpclient.hpp')
-rw-r--r--src/discord/httpclient.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/discord/httpclient.hpp b/src/discord/httpclient.hpp
index 841ce11..83b1f5a 100644
--- a/src/discord/httpclient.hpp
+++ b/src/discord/httpclient.hpp
@@ -25,6 +25,9 @@ public:
void MakePOST(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb);
void MakePUT(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb);
+ [[nodiscard]] http::request CreateRequest(http::EMethod method, std::string path);
+ void Execute(http::request &&req, const std::function<void(http::response_type r)> &cb);
+
private:
void AddHeaders(http::request &r);