HTTP Request Lab
In this lab, you will create a simple HTTP request using the built-in
http module in Node.js. The
http module provides a simple way to create and interact with HTTP servers and clients. You will implement a basic request, handle errors, and parse the received data.
The main objective of this lab is to understand how to make HTTP requests with the
http module, handle response events, and process the received data. You will be using ESM syntax to import and export modules.
After completing this lab, you'll be familiar with making HTTP requests and handling responses using the
http module in Node.js.