diff --git a/deps.edn b/deps.edn index 5b6f77bb..021726e8 100644 --- a/deps.edn +++ b/deps.edn @@ -50,7 +50,8 @@ org.clojure/data.priority-map {:mvn/version "1.1.0"} insn/insn {:mvn/version "0.5.2"} org.clojure/core.rrb-vector {:mvn/version "0.1.2"} - org.babashka/cli {:mvn/version "0.6.44"}} + org.babashka/cli {:mvn/version "0.6.44"} + org.babashka/http-client {:mvn/version "0.0.2"}} :aliases {:babashka/dev {:main-opts ["-m" "babashka.main"]} :profile diff --git a/project.clj b/project.clj index 9f0053fc..97c54ba9 100644 --- a/project.clj +++ b/project.clj @@ -32,7 +32,8 @@ [com.github.clj-easy/graal-build-time "0.1.0"] [rewrite-clj/rewrite-clj "1.1.45"] [insn/insn "0.5.2"] - [org.babashka/cli "0.6.44"]] + [org.babashka/cli "0.6.44"] + [org.babashka/http-client "0.0.2"]] :plugins [[org.kipz/lein-meta-bom "0.1.1"]] :metabom {:jar-name "metabom.jar"} :profiles {:feature/xml {:source-paths ["feature-xml"] diff --git a/resources/META-INF/babashka/deps.edn b/resources/META-INF/babashka/deps.edn index 5b6f77bb..021726e8 100644 --- a/resources/META-INF/babashka/deps.edn +++ b/resources/META-INF/babashka/deps.edn @@ -50,7 +50,8 @@ org.clojure/data.priority-map {:mvn/version "1.1.0"} insn/insn {:mvn/version "0.5.2"} org.clojure/core.rrb-vector {:mvn/version "0.1.2"} - org.babashka/cli {:mvn/version "0.6.44"}} + org.babashka/cli {:mvn/version "0.6.44"} + org.babashka/http-client {:mvn/version "0.0.2"}} :aliases {:babashka/dev {:main-opts ["-m" "babashka.main"]} :profile diff --git a/sci b/sci index 0fee9195..65622e65 160000 --- a/sci +++ b/sci @@ -1 +1 @@ -Subproject commit 0fee91953e0d0504e80a5997585c6d00833f98c0 +Subproject commit 65622e650612c7482260d75dc3be86e30a4ad64e diff --git a/src/babashka/impl/http_client.clj b/src/babashka/impl/http_client.clj new file mode 100644 index 00000000..1c1f52d2 --- /dev/null +++ b/src/babashka/impl/http_client.clj @@ -0,0 +1,10 @@ +(ns babashka.impl.http-client + (:require + [babashka.http-client] + [sci.core :as sci])) + +(def hns (sci/create-ns 'babashka.http-client)) + +(def http-client-namespace + (sci/copy-ns babashka.http-client hns)) + diff --git a/src/babashka/main.clj b/src/babashka/main.clj index b8a94a06..298eda52 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -34,6 +34,7 @@ [babashka.impl.error-handler :refer [error-handler]] [babashka.impl.features :as features] [babashka.impl.fs :refer [fs-namespace]] + [babashka.impl.http-client :refer [http-client-namespace]] [babashka.impl.nrepl-server :refer [nrepl-server-namespace]] [babashka.impl.pods :as pods] [babashka.impl.pprint :refer [pprint-namespace]] @@ -422,6 +423,7 @@ Use bb run --help to show this help output. ;; 'fork (sci/copy-var sci/fork sci-ns) } 'babashka.cli cli/cli-namespace + 'babashka.http-client http-client-namespace } features/xml? (assoc 'clojure.data.xml @(resolve 'babashka.impl.xml/xml-namespace) 'clojure.data.xml.event @(resolve 'babashka.impl.xml/xml-event-namespace)