Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for new composables: useResponseHeader(s) similar to existing useRequestHeader composable #27075

Open
3 of 4 tasks
jelmerdemaat opened this issue May 6, 2024 · 1 comment · May be fixed by #27131
Open
3 of 4 tasks

Comments

@jelmerdemaat
Copy link

jelmerdemaat commented May 6, 2024

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

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@danielroe
Copy link
Member

Would love to see it! Let me know if you need any help. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants