2020-01-04 19:04:29 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2020-01-07 08:33:37 +00:00
|
|
|
set -eo pipefail
|
|
|
|
|
|
2020-01-04 19:04:29 +00:00
|
|
|
export BABASHKA_CLASSPATH=$(clojure -Sdeps '{:deps {clj-http-lite {:git/url "https://github.com/borkdude/clj-http-lite" :sha "f44ebe45446f0f44f2b73761d102af3da6d0a13e"}}}' -Spath)
|
|
|
|
|
|
|
|
|
|
./bb -e "
|
|
|
|
|
(require '[clj-http.lite.client :as client])
|
|
|
|
|
|
|
|
|
|
(prn (:status (client/get \"https://www.clojure.org\")))
|
|
|
|
|
|
|
|
|
|
(prn (:status (client/get \"https://postman-echo.com/get?foo1=bar1&foo2=bar2\")))
|
|
|
|
|
|
|
|
|
|
(prn (:status (client/post \"https://postman-echo.com/post\")))
|
|
|
|
|
|
|
|
|
|
(prn (:status (client/put \"https://postman-echo.com/put\")))
|
|
|
|
|
"
|