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

Customizable @Method() decorator for non-standard http methods #14037

Open
1 task done
johaven opened this issue Sep 25, 2024 · 0 comments
Open
1 task done

Customizable @Method() decorator for non-standard http methods #14037

johaven opened this issue Sep 25, 2024 · 0 comments
Labels
needs triage This issue has not been looked into type: enhancement 🐺

Comments

@johaven
Copy link
Contributor

johaven commented Sep 25, 2024

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Extending non-standard http methods in Nest

Describe the solution you'd like

Fastify 5 has a new approach regarding non-standard http methods: fastify/fastify#5567.

Wouldn't it be interesting to mimic this behavior within Nest?

Specifying and allowing the use of the body for each of the methods would be really interesting

Teachability, documentation, adoption, migration strategy

Have a @method('Propfind') decorator for example and/or allow the declaration of the use of these methods at bootstrap.

What is the motivation / use case for changing the behavior?

Rather than embedding all non-standard methods in each adapter, allow these methods to be declared at startup or through the use of a special decorator.

This would allow to anticipate some requests regarding methods, including mine about webdav methods: #13278

@johaven johaven added needs triage This issue has not been looked into type: enhancement 🐺 labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has not been looked into type: enhancement 🐺
Projects
None yet
Development

No branches or pull requests

1 participant