-
Notifications
You must be signed in to change notification settings - Fork 76
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
how to send a PATCH request? #123
Comments
Hi @ycavatars, the HttpStateSource uses the isomorphic-fetch polyfill for making the request. When you make a call to this.request({ method: "patch" ...})
.then(function (res) {
console.log("everything went better than expected!");
})
.catch(function (res) {
console.log("something foobar'd");
}); Does that help? |
yes, really thanks :) |
I'll do a quick PR for you to add in the PATCH method as a sugar function like the other methods. |
hello, I read
http.js
and found that it doesn't support PATCH method. I try to callthis.request
with option{method: "patch" ...}
to send a PATCH request. The problem is, I don't know how to handle the promise rejection if an error occurred. Could you tell me where can I get enough information to achieve this? thanks.The text was updated successfully, but these errors were encountered: