This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-11
Channels
- # admin-announcements (71)
- # beginners (8)
- # boot (109)
- # cbus (5)
- # cider (27)
- # cljsrn (77)
- # clojure (65)
- # clojure-austin (5)
- # clojure-berlin (1)
- # clojure-brasil (1)
- # clojure-dev (58)
- # clojure-japan (15)
- # clojure-russia (193)
- # clojure-seattle (3)
- # clojurescript (120)
- # cursive (19)
- # data-science (1)
- # datomic (10)
- # docs (1)
- # editors-rus (17)
- # emacs (2)
- # events (1)
- # funcool (7)
- # hoplon (2)
- # jobs (1)
- # jobs-rus (16)
- # ldnclj (7)
- # leiningen (3)
- # off-topic (12)
- # om (450)
- # onyx (122)
- # re-frame (69)
- # reagent (28)
- # yada (20)
Hi guys,
do you have experience setting/retrieving cookies with yada?
@imre: I did something similar, but not with a protocol. Just a function that I call at the end of the POST method
@tangrammer: we're using tokens for API authentication. it does session expiration though, but not with cookies
@stijn: thanks for your comment! Maybe my question is a more generic one: which is the better way/place to add a header to the response?
so far my only way is using/impl interpret-post-result
from PostResult protocol
you can return from POST
(-> ctx :response (update :headers assoc "X-Some-Header" "a very secure token"))
@stijn: great, thanks!
@stijn: I did try retutning a Response from POST but could not get through that way. What I found is that the sophisticated response formatting that's present in GetMethod is missing from PostMethod
good to know, I'm still working on async streaming POST/PUT but almost done - happy to fix up interpret-post-result to match GETs
@malcolmsparks it's what happens right after interpret- that is different
Thought of submitting a pull req but I don't know the http standard well enough to know that I'm not going against it by returning all sorts of data from a post