How can one define the headers once for all endpoints? #658
Unanswered
artisanphil
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently I'm defining headers like this:
With this I have to add the response header struct to every output struct that I define. I would like to set the headers just once where I define the routes. Otherwise I have to do it like this for each route:
Is that possible? I also have a small side-issue with this in that it returns "responseheaders" as a header in addition to cache-control:
Appreciate any help that I can get on this.
Beta Was this translation helpful? Give feedback.
All reactions