From 32fc7def7c5936e9a4c8c4d9b36b9a7570ca8664 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 17 Aug 2022 01:42:30 -0400 Subject: fetch cookies and build number on startup --- src/discord/httpclient.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/discord/httpclient.hpp') 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 &cb); void MakeGET(const std::string &path, const std::function &cb); @@ -44,4 +45,5 @@ private: std::string m_authorization; std::string m_agent; std::unordered_map m_headers; + std::string m_cookie; }; -- cgit v1.2.3