parent
231e295f01
commit
89a436a5b7
2 changed files with 17 additions and 6 deletions
@ -1 +1,12 @@ |
|||||||
# Api calls http |
# Making API calls with HTTP |
||||||
|
|
||||||
|
You can make API calls using the `http` module in Node.js as well. Here are the two methods that you can use: |
||||||
|
|
||||||
|
- `http.get()` - Make http GET requests. |
||||||
|
- `http.request()` - Similar to `http.get()` but enables sending other types of http requests (GET requests inclusive). |
||||||
|
|
||||||
|
Visit the following resources to learn more: |
||||||
|
|
||||||
|
* [Node.js `http.get()` documentaion](https://nodejs.org/docs/latest-v16.x/api/http.html#httpgeturl-options-callback) |
||||||
|
* [Node `http.request()` documentaion](https://nodejs.org/docs/latest-v16.x/api/http.html#httprequesturl-options-callback) |
||||||
|
* [How To Create an HTTP Client with Core HTTP in Node.js](https://www.digitalocean.com/community/tutorials/how-to-create-an-http-client-with-core-http-in-node-js) |
Loading…
Reference in new issue