diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-27 01:37:01 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-27 01:37:01 -0500 |
commit | ae77bfd1d1df50d8159e50fee4f7c5616cffe1b8 (patch) | |
tree | 4c1ac7be700ea46432ede85a0d128394e3b31b45 /discord/http.hpp | |
parent | 1463d8da9e1b4c49021e6fa75795e2cd054b6227 (diff) | |
download | abaddon-portaudio-ae77bfd1d1df50d8159e50fee4f7c5616cffe1b8.tar.gz abaddon-portaudio-ae77bfd1d1df50d8159e50fee4f7c5616cffe1b8.zip |
set user-agent through ini
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; }; |