Include babashka.http-client (#1471)

This commit is contained in:
Michiel Borkent 2023-01-22 20:52:17 +01:00 committed by GitHub
parent 7f44c272b8
commit 02cdb00e8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 4 deletions

View file

@ -50,7 +50,8 @@
org.clojure/data.priority-map {:mvn/version "1.1.0"} org.clojure/data.priority-map {:mvn/version "1.1.0"}
insn/insn {:mvn/version "0.5.2"} insn/insn {:mvn/version "0.5.2"}
org.clojure/core.rrb-vector {:mvn/version "0.1.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 :aliases {:babashka/dev
{:main-opts ["-m" "babashka.main"]} {:main-opts ["-m" "babashka.main"]}
:profile :profile

View file

@ -32,7 +32,8 @@
[com.github.clj-easy/graal-build-time "0.1.0"] [com.github.clj-easy/graal-build-time "0.1.0"]
[rewrite-clj/rewrite-clj "1.1.45"] [rewrite-clj/rewrite-clj "1.1.45"]
[insn/insn "0.5.2"] [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"]] :plugins [[org.kipz/lein-meta-bom "0.1.1"]]
:metabom {:jar-name "metabom.jar"} :metabom {:jar-name "metabom.jar"}
:profiles {:feature/xml {:source-paths ["feature-xml"] :profiles {:feature/xml {:source-paths ["feature-xml"]

View file

@ -50,7 +50,8 @@
org.clojure/data.priority-map {:mvn/version "1.1.0"} org.clojure/data.priority-map {:mvn/version "1.1.0"}
insn/insn {:mvn/version "0.5.2"} insn/insn {:mvn/version "0.5.2"}
org.clojure/core.rrb-vector {:mvn/version "0.1.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 :aliases {:babashka/dev
{:main-opts ["-m" "babashka.main"]} {:main-opts ["-m" "babashka.main"]}
:profile :profile

2
sci

@ -1 +1 @@
Subproject commit 0fee91953e0d0504e80a5997585c6d00833f98c0 Subproject commit 65622e650612c7482260d75dc3be86e30a4ad64e

View file

@ -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))

View file

@ -34,6 +34,7 @@
[babashka.impl.error-handler :refer [error-handler]] [babashka.impl.error-handler :refer [error-handler]]
[babashka.impl.features :as features] [babashka.impl.features :as features]
[babashka.impl.fs :refer [fs-namespace]] [babashka.impl.fs :refer [fs-namespace]]
[babashka.impl.http-client :refer [http-client-namespace]]
[babashka.impl.nrepl-server :refer [nrepl-server-namespace]] [babashka.impl.nrepl-server :refer [nrepl-server-namespace]]
[babashka.impl.pods :as pods] [babashka.impl.pods :as pods]
[babashka.impl.pprint :refer [pprint-namespace]] [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) ;; 'fork (sci/copy-var sci/fork sci-ns)
} }
'babashka.cli cli/cli-namespace 'babashka.cli cli/cli-namespace
'babashka.http-client http-client-namespace
} }
features/xml? (assoc 'clojure.data.xml @(resolve 'babashka.impl.xml/xml-namespace) features/xml? (assoc 'clojure.data.xml @(resolve 'babashka.impl.xml/xml-namespace)
'clojure.data.xml.event @(resolve 'babashka.impl.xml/xml-event-namespace) 'clojure.data.xml.event @(resolve 'babashka.impl.xml/xml-event-namespace)