This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-06
Channels
- # adventofcode (112)
- # announcements (6)
- # beginners (197)
- # boot (3)
- # calva (52)
- # cider (25)
- # clara (14)
- # cljdoc (6)
- # clojure (147)
- # clojure-austin (6)
- # clojure-berlin (7)
- # clojure-brasil (2)
- # clojure-europe (3)
- # clojure-india (4)
- # clojure-italy (8)
- # clojure-new-zealand (2)
- # clojure-nl (7)
- # clojure-russia (7)
- # clojure-spec (29)
- # clojure-uk (63)
- # clojurescript (103)
- # core-async (5)
- # cursive (11)
- # datomic (16)
- # devcards (1)
- # emacs (28)
- # figwheel-main (3)
- # fulcro (97)
- # graphql (4)
- # hyperfiddle (1)
- # jobs (1)
- # kaocha (3)
- # lumo (9)
- # nrepl (4)
- # off-topic (29)
- # onyx (1)
- # pathom (4)
- # pedestal (8)
- # re-frame (24)
- # reagent (1)
- # reitit (13)
- # ring-swagger (7)
- # rum (11)
- # shadow-cljs (79)
- # sql (46)
- # tools-deps (67)
- # yada (8)
right now I have two interceptors that make outbound requests by attaching a future to the context and then returning immediately, but I’m wondering if there is a more idiomatic way
does returning an asynchronous context help? my understanding is that even if the first interceptor returns an async context, the second one will still block until the first one is done
^ Using core.async
perhaps?
Alright, classic middleware issue: at first I didn't call not-modified
and somehow added the interceptor constructor function as an interceptor to the chain. Fixing that didn't immediately work but I then realized that the interceptor order was wrong, the etag was only set after the not-modified
interceptor ran. 🙂
Problem solved 🙂
has anyone ever gotten pedestal’s response-for
to work with multipart-params?
(ring-mw/multipart-params)
as an interceptor doesn’t add the :form-params when using response-for
to test, but works when actually hitting the server
i’m not 100% sure but it almost looks like the content type gets explicitly overridden? https://github.com/pedestal/pedestal/blob/master/service/src/io/pedestal/test.clj#L141