Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stevewood-tx
Created January 9, 2019 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevewood-tx/87269e1a2e5c6bdac5453245500f172c to your computer and use it in GitHub Desktop.
Save stevewood-tx/87269e1a2e5c6bdac5453245500f172c to your computer and use it in GitHub Desktop.
Node.js https request for AWS Lambda
const req = https.request(post_options,
(res) => res.on("data", () => callback(null, "OK")))
req.on("error", (error) => callback(JSON.stringify(error)));
req.write(post_data);
req.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment