From 7934a339e9b2319e0234e8f2ca5d952eff243c05 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 21:45:32 +0000
Subject: [PATCH] improve curl
---
Modules/CurlModule/src/CurlModule.hpp | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/Modules/CurlModule/src/CurlModule.hpp b/Modules/CurlModule/src/CurlModule.hpp
index c2d30ec..cd8192a 100644
--- a/Modules/CurlModule/src/CurlModule.hpp
+++ b/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);
};
--
Gitblit v1.9.3