summaryrefslogtreecommitdiff
path: root/src/discord/httpclient.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-08-17 01:42:30 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-08-17 01:42:30 -0400
commit32fc7def7c5936e9a4c8c4d9b36b9a7570ca8664 (patch)
tree5803088f63b91967ca28a64eb53b0b701c43e35d /src/discord/httpclient.hpp
parent14602a73842f0c57eda857503a3539a9d9aa4089 (diff)
downloadabaddon-portaudio-32fc7def7c5936e9a4c8c4d9b36b9a7570ca8664.tar.gz
abaddon-portaudio-32fc7def7c5936e9a4c8c4d9b36b9a7570ca8664.zip
fetch cookies and build number on startup
Diffstat (limited to 'src/discord/httpclient.hpp')
-rw-r--r--src/discord/httpclient.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/discord/httpclient.hpp b/src/discord/httpclient.hpp
index 83b1f5a..e91a055 100644
--- a/src/discord/httpclient.hpp
+++ b/src/discord/httpclient.hpp
@@ -18,6 +18,7 @@ public:
void SetUserAgent(std::string agent);
void SetAuth(std::string auth);
void SetPersistentHeader(std::string name, std::string value);
+ void SetCookie(std::string_view cookie);
void MakeDELETE(const std::string &path, const std::function<void(http::response_type r)> &cb);
void MakeGET(const std::string &path, const std::function<void(http::response_type r)> &cb);
@@ -44,4 +45,5 @@ private:
std::string m_authorization;
std::string m_agent;
std::unordered_map<std::string, std::string> m_headers;
+ std::string m_cookie;
};