Add json-get from souk
This commit is contained in:
parent
bbde1d7f83
commit
0055b159b1
1 changed files with 10 additions and 1 deletions
|
@ -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}))
|
||||||
|
|
Loading…
Reference in a new issue