diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-28 02:16:59 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-28 02:16:59 -0500 |
commit | 1989b22993378f8bad9e5b6577b2c934814294cf (patch) | |
tree | 27bc1c1fa21833dcddce907c4e1b34d57b94f269 /discord/http.hpp | |
parent | 0b8c83eaa1fdb0fcb610f9181145abde3d60d803 (diff) | |
parent | 6f7ea234e559b8a43b40fa325f3425c2e8a8e6fd (diff) | |
download | abaddon-portaudio-1989b22993378f8bad9e5b6577b2c934814294cf.tar.gz abaddon-portaudio-1989b22993378f8bad9e5b6577b2c934814294cf.zip |
Merge branch 'master' into disk-cache
Diffstat (limited to 'discord/http.hpp')
-rw-r--r-- | discord/http.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/http.hpp b/discord/http.hpp index db60498..b664c86 100644 --- a/discord/http.hpp +++ b/discord/http.hpp @@ -13,6 +13,7 @@ class HTTPClient { public: HTTPClient(std::string api_base); + void SetUserAgent(std::string agent); void SetAuth(std::string auth); void MakeDELETE(std::string path, std::function<void(cpr::Response r)> cb); void MakeGET(std::string path, std::function<void(cpr::Response r)> cb); @@ -32,4 +33,5 @@ private: std::vector<std::future<void>> m_futures; std::string m_api_base; std::string m_authorization; + std::string m_agent; }; |