summaryrefslogtreecommitdiff
path: root/discord/http.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-11-27 01:37:01 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2020-11-27 01:37:01 -0500
commitae77bfd1d1df50d8159e50fee4f7c5616cffe1b8 (patch)
tree4c1ac7be700ea46432ede85a0d128394e3b31b45 /discord/http.hpp
parent1463d8da9e1b4c49021e6fa75795e2cd054b6227 (diff)
downloadabaddon-portaudio-ae77bfd1d1df50d8159e50fee4f7c5616cffe1b8.tar.gz
abaddon-portaudio-ae77bfd1d1df50d8159e50fee4f7c5616cffe1b8.zip
set user-agent through ini
Diffstat (limited to 'discord/http.hpp')
-rw-r--r--discord/http.hpp2
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;
};