how do you get a route to respond with an http header?

docs are very vague on this
4 Replies
stiba
stiba•5mo ago
An API-route?
Samual 🦢
Samual 🦢•5mo ago
nope, a regular route
stiba
stiba•5mo ago
Can you describe your usecase?
Samual 🦢
Samual 🦢•5mo ago
setting a cookie I've figured it out getRequestEvent()?.node.res.appendHeader("x-foo", "bar")