Suggestion for new composables: useResponseHeader(s)
similar to existing useRequestHeader
composable
#27075
Open
3 of 4 tasks
Labels
Describe the feature
My feature suggestion is to add 1 or 2 new composables:
useResponseHeader
useResponseHeaders
Which would both be very similar to their existing equals:
Without having looked extensively at these existing composables, I think you might even be able to reuse a lot of the same scaffolding for creating
useResponseHeader(s)
.Although I have not contributed before, I am experienced in building with Nuxt and would be willing (glad!) to implement this feature myself.
Motivation for this feature comes from my own desire to have a simple way to set response headers. For what it's worth, I did a quick search for issues and more people are asking about this:
(It's not impossible right now of course, but having a dedicated composable for this in the docs could increase discoverability/usability.)
Additional information
Final checks
The text was updated successfully, but these errors were encountered: