Fork me on GitHub
#ring
<
2020-01-09
>
drewverlee17: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"]}

drewverlee17:01:15

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

drewverlee17:01:51

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