Which of the following HTTP methods does NOT have a body in the Fetch API?

  • GET
  • POST
  • DELETE
  • PUT
In the Fetch API, the HTTP GET method does not have a body because it is used to retrieve data from a server. The other methods like POST, DELETE, and PUT can include a request body to send data to the server. Understanding this is essential when working with APIs for data retrieval and manipulation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *