// CurlModule: declares a module that provides 'curl' function via libcurl #ifndef CURLMODULE_CURLMODULE_HPP #define CURLMODULE_CURLMODULE_HPP #include "Modules/BaseModule.hpp" #include #include "Symbols/Value.hpp" namespace Modules { class CurlModule : public BaseModule { public: /** * @brief Register this module's symbols (HTTP GET and POST functions). */ void registerModule() override; /** * @brief Perform HTTP GET: curlGet(url) */ Symbols::Value curlGet(const std::vector& args); /** * @brief Perform HTTP POST: curlPost(url, data) */ Symbols::Value curlPost(const std::vector& args); }; } // namespace Modules #endif // CURLMODULE_CURLMODULE_HPP