🛠️
Tools
Shed
开发者
单位换算
文本
金融
健康
时间
数学
图片
安全
网络
设计
数据
English
日本語
한국어
中文
Español
Português
Français
Deutsch
Русский
Italiano
Türkçe
Indonesia
首页
/
网络工具
/
HTTP方法参考
HTTP方法参考
HTTP方法综合参考指南。
GET
Retrieve a resource or collection of resources from the server. Should not have side effects.
▲
安全
是
幂等
是
请求体
No
响应体
是
常见用例
Fetch user profile
List all products
Search results
Download file
典型状态码
200 OK
304 Not Modified
404 Not Found
401 Unauthorized
POST
Submit data to be processed, creating a new resource or triggering an action. Not idempotent.
▼
PUT
Replace an entire resource with the provided data. Creates the resource if it does not exist.
▼
PATCH
Apply partial modifications to a resource. Only sends the fields that need to be updated.
▼
DELETE
Delete the specified resource. Multiple identical requests should have the same effect.
▼
HEAD
Same as GET but only returns headers, no body. Used to check resource existence or metadata.
▼
OPTIONS
Describes the communication options for the target resource. Used for CORS preflight requests.
▼
TRACE
Performs a message loop-back test along the path to the target resource. Used for diagnostics.
▼
常见问题
GET 和 POST 有什么区别?
+
HTTP 方法中的幂等性是什么意思?
+
什么时候应该使用 PUT vs PATCH?
+
OPTIONS 方法的目的是什么?
+
DELETE 可以多次调用吗?
+
Comments & Feedback
Comments are powered by
Giscus
. Sign in with GitHub to leave a comment.