Skip to content

calcit-lang/calcit-fetch

Repository files navigation

Calcit Fetch

Fetch client for Calcit

Usages

APIs:

fetch.core/fetch |http://calcit-lang.org nil $ fn (text)
  println text

Demo of options:

fetch "\"http://localhost:4000/demo"
  {} (:method :POST)
    :headers $ {} (:a |b)
    :queries $ [] ([] :a |b)
      [] :c |d
    :body "|Some body"
  fn (info)
    tag-match info
      (:ok text)
        println text
      (:err e)
        println "\"Err" e

Install to ~/.config/calcit/modules/, compile and provide *.{dylib,so} file with ./build.sh.

Workflow

https://github.com/calcit-lang/dylib-workflow

License

MIT