Hypertext Transfer Protocol (HTTP) Methods
blog image source |
The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers.
HTTP works as a request-response protocol between a client and server.
A web browser may be the client, and an application on a computer that hosts a website may be the server.
Two commonly used methods for a request-response between a client and server are GET and POST.
- GET - for returning resources
- POST - for creating a new resource
Other used methods:
- PUT - for updating a resource
- PATCH - for updating a resource
- DELETE - for deleting a resource