-
Notifications
You must be signed in to change notification settings - Fork 2
feat: shortcuts for HTTP methods #15
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
Conversation
GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH
1 similar comment
src/shortcuts.js
Outdated
| ...rest, | ||
| options: { | ||
| ...options, | ||
| method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if I'll use shortcut and method in options? I see shortcut's the most priority argument, but are you sure it is the right way? I think case when you are passing method through arguments more usual case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that i think about, it was a wrong decision, i can see how overriding the method when calling api may be beneficial
i'll change that
Blackheart340
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH