This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-06
Channels
- # architecture (17)
- # beginners (118)
- # boot (22)
- # cider (9)
- # clara (38)
- # cljs-dev (4)
- # clojure (213)
- # clojure-austin (4)
- # clojure-greece (1)
- # clojure-italy (4)
- # clojure-russia (5)
- # clojure-spec (7)
- # clojure-uk (5)
- # clojurescript (3)
- # cursive (21)
- # datascript (3)
- # datomic (31)
- # duct (12)
- # emacs (9)
- # graphql (5)
- # gsoc (1)
- # hoplon (9)
- # leiningen (2)
- # off-topic (37)
- # om (2)
- # onyx (2)
- # parinfer (5)
- # perun (4)
- # reagent (2)
- # spacemacs (1)
- # specter (25)
what's the current best practices for doing http request from cljs in node? looks like the cljs-http-node library is still in snapshot mode. is there another?
i just saw cljs-ajax, does that help?
Another option could be to use one of the npm packages fx. request (https://www.npmjs.com/package/request)
yarn add request or npm i -S request
(ns test.core (:require [request :as request]))
(request
""
(fn [err res body]
(let [headers (js->clj (.-headers res) :keywordize-keys true)]
(println body)
(println headers))))