+2 votes
1 view
in AWS by (880 points)

Can you help me out with this program?
I am unable to run this code.

varx http = require('http');
exports.handler = function(eventa, contextb) {
console.log('start request to ' + eventa.url)
http.get(eventa.url, function(res) {
console.log("Got response: " + res.statusCode);
context.succeed();
}).on('error', function(e) {
console.log("Got error: " + e.message);
context.done(null, 'ERROR');
});
console.log('end request to ' + eventa.url);
}

Please log in or register to answer this question.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...