Fork me on GitHub
#ring
<
2020-01-09
>
Drew Verlee17:01:14

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

weavejester20:01:04

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.