add make_query without params
This commit is contained in:
@@ -288,6 +288,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
hack::log()("============================================================");
|
||||
hack::log()("utils::make_query");
|
||||
|
||||
{// ex: query function
|
||||
auto query = hack::utils::make_query("super_function", "1", "two");
|
||||
hack::log()("query", query);
|
||||
@@ -298,8 +301,14 @@ int main(int argc, char *argv[])
|
||||
hack::utils::json js { "test", "data" };
|
||||
query = hack::utils::make_query("super_function", 1, 123.3f, js);
|
||||
hack::log()("query", query);
|
||||
|
||||
query = hack::utils::make_query("super_function");
|
||||
hack::log()("query", query);
|
||||
}
|
||||
|
||||
hack::log()("============================================================");
|
||||
hack::log()("utils::is_link");
|
||||
|
||||
{// ex: is link
|
||||
std::string link { "https://google.com" };
|
||||
if (hack::security::is_link(link))
|
||||
|
||||
Reference in New Issue
Block a user