Compare commits

...

2 commits

Author SHA1 Message Date
0055b159b1 Add json-get from souk 2023-06-15 15:00:46 +02:00
bbde1d7f83 Add deps from souk 2023-06-15 14:58:49 +02:00
2 changed files with 18 additions and 2 deletions

View file

@ -4,7 +4,14 @@
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.11.1"]
[hato/hato {:mvn/version "0.9.0"}]]
;; Incoming HTTP
[ring/ring-core "1.9.6"]
[ring/ring-jetty-adapter "1.9.6"]
[ring/ring-mock "0.4.0"]
[metosin/muuntaja "0.6.8"]
[metosin/reitit "0.5.18"]
;; Outgoing HTTP
[hato/hato "0.9.0"]]
:main ^:skip-aot activity-pub-poc.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})

View file

@ -1 +1,10 @@
(ns activity-pub-poc.json-ld)
(ns activity-pub-poc.json-ld
(:require
[hato.client as http]
))
(defn json-get [url]
(hato/get url
{:headers {"Accept" "application/json"}
:http-client {:redirect-policy :normal}
:as :json-string-keys}))