Created
September 19, 2020 01:27
-
-
Save lukegackle/6692e2ba2da501acc66f65274b9bd771 to your computer and use it in GitHub Desktop.
Request-Promise Simplified
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Build the request | |
let req = { | |
method: "GET", | |
uri: "https://www.google.com.au", | |
port: 443, | |
resolveWithFullResponse: true | |
}; | |
//Make the request | |
let resp = await rp(req); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment