We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Extend request object, so you can change this code:
request
var request = require('superagent'); request .post(api) .end(function(res, err) { if(err || !res.ok) { // error return; } // success });
To this:
var request = require('superagent'); var requestPromise = require('superagent-promise'); request .use(requestPromise) .post(api) .then(function(value) { // success }) .catch(function(err) { // error }) .done();
The text was updated successfully, but these errors were encountered:
https://github.com/visionmedia/superagent#plugins https://github.com/johntron/superagent-no-cache/blob/master/index.js https://github.com/johntron/superagent-prefix/blob/master/index.js https://github.com/wheresrhys/superagent-promises/blob/master/index.js
Sorry, something went wrong.
No branches or pull requests
Extend
request
object, so you can change this code:To this:
The text was updated successfully, but these errors were encountered: