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

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

Did you find this page helpful?