Understanding HTTP methods
If you have built any kind of a website before, you probably have an understanding of the concept of HTTP methods, or at least the basic GET
and POST
methods. However, did you know that there are nine standard HTTP methods? In this section, we will learn about these different methods and how we can take advantage of them.
In the same way that an IP address or a web domain is a place on the internet, an HTTP method is an action on the internet. They are a collection of verbs in the language of the web. These HTTP methods have a shared understanding and meaning. Web applications will commonly use these methods in similar use cases. That does not mean that you must follow the conventions, or that your application will break if you venture away from the standards. We should learn the rules so that we know when it may be appropriate to break them. These standards exist to create a common language that web developers and consumers can use to communicate:
...