We use request to make http requests with node.js. We would like to give the user an opportunity to abort the request when he decides. That means we have to trigger the abor
The request function returns a request object. Just call abort() on that?
abort()
var r = request({uri: 'http://stackoverflow.com' }, function (error, response, body) { console.log('url requested ') ; if (!error){ console.log(body); } else { console.log(error); } }); r.abort();