Fork me on GitHub
Drew Verlee17:01:14

ring.util.response/header seems to take one header (key value). Whats the way to add multiple at once?


Make the value a collection. e.g. {"X-Foo" ["bar" "baz"]}

Drew Verlee17:01:15

hmm it looks like you can just assoc in (assoc-in(handler request) [:headers <header>] <value>))`

Drew Verlee17:01:51

I mean, thats just what the header function does. i dont know what i expected.