i

Handling Post Requests

When data is sent to the server as a POST request, it is part of the request body, so we need to extract data from the request body itself. So, it is not visible as in the GET request.

For Authentication type use-cases where we want the data to be invisible publicly, we use the POST methodology.

To handle a POST request, we need to understand how to do event handling in Node.js.

Fetching of data from a POST request in Node.js is done by handling events.