Node

Step 4: Requests sent from clients are HTTP requests. HTTP stands for HyperText Transfer Protocol. The two main types of requests are get and post. A get request is used to get information from a server. For example, when you visited this page, you sent a get request to Mr. Code's server, and the server sent back HTML, CSS, and JavaScript for your browser to render. A post request is used to send information to a server. For example, when you signed into this website, you sent a post request containing your username to Mr. Code's server, and the server verified your username. To have your app receive get requests, add the following:
app.get()
The get method takes in two arguments, which will be discussed in the next several steps.
Last step Next step