Created
November 1, 2022 04:17
-
-
Save nidhi-canopas/d3b53ecbc2ac915c584f92e7881e35bf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function invokeAPI() { | |
await fetch('http://localhost:3000/ping') | |
.then(res => { | |
for (var headers of res.headers.entries()) { | |
console.log(headers[0]+ ': '+ headers[1]); | |
} | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment