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/trace/index.html | 77 +++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 files/zh-cn/web/http/methods/trace/index.html (limited to 'files/zh-cn/web/http/methods/trace') diff --git a/files/zh-cn/web/http/methods/trace/index.html b/files/zh-cn/web/http/methods/trace/index.html new file mode 100644 index 0000000000..47f22c8da2 --- /dev/null +++ b/files/zh-cn/web/http/methods/trace/index.html @@ -0,0 +1,77 @@ +--- +title: TRACE +slug: Web/HTTP/Methods/TRACE +translation_of: Web/HTTP/Methods/TRACE +--- +
{{HTTPSidebar}}
+ +

HTTP TRACE 方法 实现沿通向目标资源的路径的消息环回(loop-back)测试 ,提供了一种实用的 debug 机制。

+ +

请求的最终接收者应当原样反射(reflect)它接收到的消息,除了以下字段部分,作为一个{{httpheader("Content-Type")}} 为 message/http  的200(OK)响应的消息的主体(body)返回给客户端 。

+ +

最终接收者是指初始(origin)服务器,或者第一个接收到 {{httpheader("Max-Forwards")}} 值为 0的请求的服务器。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
有主体(body)的请求(request)
包含主体(body)的成功的响应(response)
{{Glossary("Safe")}}
{{Glossary("Idempotent")}}
{{Glossary("Cacheable")}}
允许用于 HTML 表单(form)
+ +

语法

+ +
TRACE /index.html
+
+ +

规范

+ + + + + + + + + + + + + + +
规范标题
{{RFC("7231", "TRACE", "4.3.8")}}Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
+ +

浏览器兼容性

+ + + +

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

+ +

参考

+ + + +

 

-- cgit v1.2.3-54-g00ecf