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

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

Did you find this page helpful?