We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Migrating from v0.x to v1.x
.end
The callback for .end() will always be passed err, res. Arity is no longer used to detect response only.
.end()
err, res
Before
superagent .get('/foo') .end(function(res) { });
After
superagent .get('/foo') .end(function(err, res) { });