It defines a set of HTTP request method , to indicate the operation to be performed on a given resource. The indicator for the desired action you want to perform a given resource, although they can also be a noun, but these methods are sometimes called HTTP request verb each request methods to achieve different semantics, but some common features shared by a group: : for example, a method may be a request Safe , retries genuinely idempotent , or Cacheable .
-
GET
- GET method request a representation of the specified resource. Using the GET request should only be used to retrieve data.
-
HEAD
- HEAD method requests a response to the same request and response GET, but no response body.
-
POST
- POST method for submitting entity to the specified resource, or the side effects generally result in a change in state on the server.
-
PUT
- The method of replacing the target resource PUT request payload with all current representation.
-
DELETE
- DELETE method to delete the specified resource.
-
CONNECT
- CONNECT method to establish a tunnel resource identified by the target server.
-
OPTIONS
- OPTIONS method used to describe the communication options of the target resource.
-
TRACE
- TRACE method of performing a message along the path to the target resource loopback test.
-
PATCH
- PATCH A method for modifying the resource application part.
- Reference Links: https://www.runoob.com/http/http-methods.html
- https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Methods