diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-06-03 19:23:33 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-06-03 19:23:33 -0400 |
commit | 5866836d5d423ccf52ac8fbbe94df6c9cf7debac (patch) | |
tree | b794aa32ab1a9fc33d35d38bd996682f94b40469 /discord/httpclient.cpp | |
parent | c3b2bbd64739d18fe69781c86d327c79b559eddd (diff) | |
download | abaddon-portaudio-5866836d5d423ccf52ac8fbbe94df6c9cf7debac.tar.gz abaddon-portaudio-5866836d5d423ccf52ac8fbbe94df6c9cf7debac.zip |
allow overriding of gateway + api url
Diffstat (limited to 'discord/httpclient.cpp')
-rw-r--r-- | discord/httpclient.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/discord/httpclient.cpp b/discord/httpclient.cpp index 7297643..05474df 100644 --- a/discord/httpclient.cpp +++ b/discord/httpclient.cpp @@ -1,11 +1,14 @@ #include "httpclient.hpp" //#define USE_LOCAL_PROXY -HTTPClient::HTTPClient(std::string api_base) - : m_api_base(api_base) { +HTTPClient::HTTPClient() { m_dispatcher.connect(sigc::mem_fun(*this, &HTTPClient::RunCallbacks)); } +void HTTPClient::SetBase(const std::string &url) { + m_api_base = url; +} + void HTTPClient::SetUserAgent(std::string agent) { m_agent = agent; } |