Instagram
youtube
Facebook
Twitter

ExpressJS- HTTP methods

HTTP Methods

  • Routing refers to how an application's URLs respond to a user request.
  • It can manage different types of HTTP requests.
  • The route method is derived from the HTTP method.
  • HTTP methods include GET, POST, PUT and DELETE.
S.No Method Description
1. GET The GET method is used to retrieve data. It requests a representation of the specified resource.
2. POST The POST method is used to send large amounts of data because data is sent in the body.
3. PUT The PUT method is used for modification to an existing object identified by the URL.
4. DELETE The DELETE method is used to delete the specified resource.