Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const https = require('https')
let url = ""
exports.handler = async function(event) {
const promise = new Promise(function(resolve, reject) {
console.log("Processing URL: "url)
https.get(url, (res) => {
// console for debugging / testing purpose."Request was successfull!!!")
}).on('error', (e) => {
// console for errors
console.error("Error while processing:" + e)
return promise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment