Compare commits

...

3 commits

Author SHA1 Message Date
76df00fac6 Experiment with http-get 2023-06-15 15:18:50 +02:00
80feb82039 Update deps 2023-06-15 15:18:25 +02:00
257eab73e0 Update gitignore 2023-06-15 15:18:14 +02:00
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View file

@ -14,3 +14,4 @@ pom.xml.asc
.clj-kondo/.cache/
.clj-kondo/metosin/
.lsp/.cache/
.calva

View file

@ -11,7 +11,7 @@
[metosin/muuntaja "0.6.8"]
[metosin/reitit "0.5.18"]
;; Outgoing HTTP
[hato/hato "0.9.0"]]
[hato "0.9.0"]]
:main ^:skip-aot activity-pub-poc.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})

View file

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