summaryrefslogtreecommitdiff
path: root/src/discord/httpclient.hpp
diff options
context:
space:
mode:
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;
};