Include babashka.http-client (#1471)
This commit is contained in:
parent
7f44c272b8
commit
02cdb00e8d
6 changed files with 19 additions and 4 deletions
3
deps.edn
3
deps.edn
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
|
|
|
||||||
|
|
@ -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
2
sci
|
|
@ -1 +1 @@
|
||||||
Subproject commit 0fee91953e0d0504e80a5997585c6d00833f98c0
|
Subproject commit 65622e650612c7482260d75dc3be86e30a4ad64e
|
||||||
10
src/babashka/impl/http_client.clj
Normal file
10
src/babashka/impl/http_client.clj
Normal 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))
|
||||||
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue