📜  Koa.js-HTTP方法

📅  最后修改于: 2020-10-23 07:44:26             🧑  作者: Mango


请求中提供了HTTP方法,并指定了客户端已请求的操作。下表总结了常用的HTTP方法。

Sr.No. Method & Description
1

GET

The GET method requests a representation of the specified resource. Requests using GET should only retrieve data and should have no other effect.

2

POST

The POST method requests that the server accept the data enclosed in the request as a new object/entity of the resource identified by the URI.

3

PUT

The PUT method requests that the server accept the data enclosed in the request as a modification to the existing object identified by the URI. If it does not exist, then PUT method should create one.

4

DELETE

The DELETE method requests that the server delete the specified resource.

这些是最常见的HTTP方法。要了解有关它们的更多信息,请转到https://www.tutorialspoint.com/http/http_methods.htm