Closed tusbar closed 9 years ago
Let's go :)
released at v0.3.0 on npm
Promises are better, but we lose the normal callbacks
Is there a solution to keep promises and callbacks working together as did httpinvoke
? (cc @tusbar)
No no, nodejs callbacks still work fine as I’m using .nodeify()
.
var sdk = new (require('.'))();
sdk.get('/', function (err, res) {
console.log(res.body);
});
… instead of httpinvoke’s homemade wrapper.
Feel free to merge, or not. But https://github.com/request/request response objects are more common, so are Bluebird promises.
I removed the hook as I’m not sure that it does anything.