A simple scripting language in C++
Ferenc Szontágh
2025-04-18 7934a339e9b2319e0234e8f2ca5d952eff243c05
Modules/CurlModule/src/CurlModule.hpp
@@ -16,12 +16,20 @@
    void registerModule() override;
    
    /**
     * @brief Perform HTTP GET: curlGet(url)
     * @brief Perform HTTP GET: curlGet(url [, options])
     * options is an object with optional fields:
     *   timeout (int or double seconds),
     *   follow_redirects (bool),
     *   headers (object mapping header names to values)
     */
    Symbols::Value curlGet(const std::vector<Symbols::Value>& args);
    
    /**
     * @brief Perform HTTP POST: curlPost(url, data)
     * @brief Perform HTTP POST: curlPost(url, data [, options])
     * options is an object with optional fields:
     *   timeout (int or double seconds),
     *   follow_redirects (bool),
     *   headers (object mapping header names to values)
     */
    Symbols::Value curlPost(const std::vector<Symbols::Value>& args);
};