5 Ways to Make HTTP Requests in Node.js 1.HTTP – the Standard Library 2.Request 3.Axios 4.SuperAgent 5.Got // send a POST request axios({ method: ‘post’,
Tag: async
Sending Http Requests with the fetch() API – JavaScript
The fetch API is a relatively modern addition to the browser and not all browsers support it especially older browsers Internet Explorer of course does
Sending Http Requests with XMLHttpRequest – JavaScript
Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables
Javascript Promise And Async – Await
we can use async/await to make JavaScript promises easier to work with before we have two functions here the first function make request returns a
Javascript : Callback
What is a Callback? Simply put: A callback is a function that is to be executed after another function has finished executing – hence the
Javascript : Async/Await
Async/Await Inside a function marked as async, you are allowed to place the await keyword in front of an expression that returns a Promise. When
Promises explained
promise object is data returned by asynchronous function. It can be a resolve if the function returned successfully or a reject if function returned an