Make the same get request made only once.
The default timeout is 10s.
If any error happens, the following request with the same url & parmas will be sent again.
Install with component(1):
$ component install chemzqm/one-query
The same as superagent.
var query = require('one-query');
query('/test', {x:1, y:2}, function(err, res) {
console.log(res.status);
});
MIT