aboutsummaryrefslogtreecommitdiffstats
path: root/http_demo_commands.sexp
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-04-27 23:24:19 -0300
committerGitHub <noreply@github.com>2026-04-27 23:24:19 -0300
commit97960adb8426e5270fe16b027e82a2c61674f821 (patch)
tree03da5611898c06cd3868d4384ef4259005a29b69 /http_demo_commands.sexp
parent56492ad5f6f09d8c9f337d42803b64d1b9f0668b (diff)
downloadSakura-97960adb8426e5270fe16b027e82a2c61674f821.tar.gz
Sakura-97960adb8426e5270fe16b027e82a2c61674f821.zip
Foreign call PRL (#67)
Diffstat (limited to 'http_demo_commands.sexp')
-rw-r--r--http_demo_commands.sexp4
1 files changed, 4 insertions, 0 deletions
diff --git a/http_demo_commands.sexp b/http_demo_commands.sexp
new file mode 100644
index 0000000..680831f
--- /dev/null
+++ b/http_demo_commands.sexp
@@ -0,0 +1,4 @@
+(prl (LoadLibrary "C:/Users/mague/source/repos/_build/default/plugin/lib/plugin.cmxs"))
+(prl (DefineFunctionPredicate ((name "http.get") (schema (("url" "string") ("status_code" "string") ("body" "string"))) (symbol "http.get") (purity Pure) (cardinality ConstrainedFinite))))
+(drl (Select (Const (("url" (Str "https://example.com")))) (Base "public:http.get")))
+(drl (Join (url) (Const (("url" (Str "https://json.org/example.html")))) (Base "public:http.get")))