You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the get and post methods, it would be great to support either Promises (methods return Promises instead of using the callback), or supporting "error-first callbacks" as most Node libraries do, which indirectly enables developers to use a Promise library like Bluebird.
The get and post methods currently accept a callback with a response param, which contains either an error or result.
Most Node libraries, especially native ones, use a "error-first callbacks", where the callback would be more like:
For the
get
andpost
methods, it would be great to support either Promises (methods return Promises instead of using the callback), or supporting "error-first callbacks" as most Node libraries do, which indirectly enables developers to use a Promise library like Bluebird.The
get
andpost
methods currently accept a callback with aresponse
param, which contains either an error or result.Most Node libraries, especially native ones, use a "error-first callbacks", where the callback would be more like:
then, developers can use a Promise library like bluebird to "promisify" those methods.
The text was updated successfully, but these errors were encountered: