diff options
Diffstat (limited to 'src/discord/httpclient.hpp')
-rw-r--r-- | src/discord/httpclient.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/discord/httpclient.hpp b/src/discord/httpclient.hpp index 47b8a4d..366d4eb 100644 --- a/src/discord/httpclient.hpp +++ b/src/discord/httpclient.hpp @@ -23,6 +23,9 @@ public: 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); + [[nodiscard]] http::request CreateRequest(http::EMethod method, std::string path); + void Execute(http::request &&req, const std::function<void(http::response_type r)> &cb); + private: void OnResponse(const http::response_type &r, const std::function<void(http::response_type r)> &cb); void CleanupFutures(); |