Typefully

About HTML HTTP Request Methods - 2

Avatar

Share

 • 

3 years ago

 • 

View on X

🔷 About HTML HTTP Request Methods - 2 A Thread🧵 👇
3️⃣ PUT → PUT is used to send data to a server to create/update a resource. → The difference between POST and PUT is that PUT requests are idempotent. → That is, calling the same PUT request multiple times will always produce the same result.
→ In contrast, calling a POST request repeatedly have side effects of creating the same resource multiple times.
4️⃣ DELETE → The DELETE method deletes the specified resource.
5️⃣ HEAD → HEAD is almost identical to GET, but without the response body. → In other words, if GET /users returns a list of users, then HEAD/users will make the same request but will not return the list of users.
→ HEAD requests are useful for checking what a GET request will return before actually making a GET request like before downloading a large file or response body.
6️⃣ OPTIONS → The OPTIONS method describes the communication options for the target resource.
7️⃣ PATCH → The PATCH method is used to apply partial modifications to a resource.
Thanks for reading this thread ❤️ If you like it , make sure you: 🔷 Like the tweet 🔷 Retweet the first tweet ⚡ For more content , follow: @MrunayU
Avatar

Mrunay Uttarwar

@MrunayU

🌐 Front End Dev 💻 Transitioning into Web3 🚀 Content Creator 📝 Always learning and sharing my journey 💻 Let's connect and geek out!