Comment

Comment by oskarth

Another trick is to define temporary inline vars. If I have some Ring handler, it can be quite annoying to construct a request by hand. Instead, I can do something like:

    (defn foo-handler [{{:strs [authorization]} :headers :as req}]
      (def *req req)
      (def *auth authorization)
      ...)
Then fire off a request in my browser and simply proceed to play around with `req` and `auth` in my editor/REPL, which is where I am running my local server from.
parent oskarth 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton