summaryrefslogtreecommitdiff
path: root/src/discord/httpclient.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/httpclient.hpp')
-rw-r--r--src/discord/httpclient.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/discord/httpclient.hpp b/src/discord/httpclient.hpp
index da8be37..47b8a4d 100644
--- a/src/discord/httpclient.hpp
+++ b/src/discord/httpclient.hpp
@@ -17,14 +17,14 @@ public:
void SetUserAgent(std::string agent);
void SetAuth(std::string auth);
- void MakeDELETE(const std::string &path, std::function<void(http::response_type r)> cb);
- void MakeGET(const std::string &path, std::function<void(http::response_type r)> cb);
- void MakePATCH(const std::string &path, const std::string &payload, std::function<void(http::response_type r)> cb);
- void MakePOST(const std::string &path, const std::string &payload, std::function<void(http::response_type r)> cb);
- void MakePUT(const std::string &path, const std::string &payload, std::function<void(http::response_type r)> cb);
+ void MakeDELETE(const std::string &path, const std::function<void(http::response_type r)> &cb);
+ void MakeGET(const std::string &path, const std::function<void(http::response_type r)> &cb);
+ void MakePATCH(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb);
+ void MakePOST(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb);
+ void MakePUT(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb);
private:
- void OnResponse(const http::response_type &r, std::function<void(http::response_type r)> cb);
+ void OnResponse(const http::response_type &r, const std::function<void(http::response_type r)> &cb);
void CleanupFutures();
mutable std::mutex m_mutex;