From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/http/methods/delete/index.html | 103 +++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 files/zh-cn/web/http/methods/delete/index.html (limited to 'files/zh-cn/web/http/methods/delete') diff --git a/files/zh-cn/web/http/methods/delete/index.html b/files/zh-cn/web/http/methods/delete/index.html new file mode 100644 index 0000000000..5da1185b7c --- /dev/null +++ b/files/zh-cn/web/http/methods/delete/index.html @@ -0,0 +1,103 @@ +--- +title: DELETE +slug: Web/HTTP/Methods/DELETE +tags: + - HTTP + - HTTP方法 + - 参考 + - 请求方法 +translation_of: Web/HTTP/Methods/DELETE +--- +
{{HTTPSidebar}}
+ +

HTTP DELETE 请求方法用于删除指定的资源。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
请求是否有主体可以有
成功的返回是否有主体可以有
{{Glossary("安全")}}
{{Glossary("幂等")}}
{{Glossary("可缓存")}}
可以在HTML forms中使用
+ +

语法

+ +
DELETE /file.html HTTP/1.1
+
+ +

示例

+ +

请求

+ +
DELETE /file.html HTTP/1.1
+ +

响应

+ +

如果 DELETE 方法成功执行,那么可能会有以下几种状态码:

+ + + +
HTTP/1.1 200 OK
+Date: Wed, 21 Oct 2015 07:28:00 GMT
+
+<html>
+  <body>
+    <h1>File deleted.</h1>
+  </body>
+</html>
+ +

规范

+ + + + + + + + + + + + +
SpecificationTitle
{{RFC("7231", "DELETE", "4.3.5")}} +

Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content

+
+ +

Browser compatibility

+ +

{{Compat("http.methods.DELETE")}}

+ +

相关内容

+ + + +

 

+ +

 

-- cgit v1.2.3-54-g00ecf