aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/response_header
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/response_header
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/glossary/response_header')
-rw-r--r--files/zh-cn/glossary/response_header/index.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/response_header/index.html b/files/zh-cn/glossary/response_header/index.html
new file mode 100644
index 0000000000..6212a893d4
--- /dev/null
+++ b/files/zh-cn/glossary/response_header/index.html
@@ -0,0 +1,39 @@
+---
+title: Response header 响应头
+slug: Glossary/Response_header
+tags:
+ - Response Header
+ - 响应头
+translation_of: Glossary/Response_header
+---
+<p><strong>响应头(Response header)</strong> 可以定义为:被用于http响应中并且和响应消息主体无关的那一类 {{glossary("header", "HTTP header")}}。像{{HTTPHeader("Age")}}, {{HTTPHeader("Location")}} 和 {{HTTPHeader("Server")}}都属于响应头,他们被用于描述响应。</p>
+
+<p>并非所有出现在响应中的http header都属于响应头,例如{{HTTPHeader("Content-Length")}}就是一个代表响应体消息大小的{{glossary("entity header")}},虽然你也可以把它叫做响应头。</p>
+
+<p>下面展示了一个 {{HTTPMethod("GET")}}请求的响应头。需要注意的是,严格来说{{HTTPHeader("Content-Encoding")}}和{{HTTPHeader("Content-Type")}}都是属于{{glossary("entity headers")}}。</p>
+
+<pre>200 OK
+Access-Control-Allow-Origin: *
+Connection: Keep-Alive
+Content-Encoding: gzip
+Content-Type: text/html; charset=utf-8
+Date: Mon, 18 Jul 2016 16:06:00 GMT
+Etag: "c561c68d0ba92bbeb8b0f612a9199f722e3a621a"
+Keep-Alive: timeout=5, max=997
+Last-Modified: Mon, 18 Jul 2016 02:36:04 GMT
+Server: Apache
+Set-Cookie: mykey=myvalue; expires=Mon, 17-Jul-2017 16:06:00 GMT; Max-Age=31449600; Path=/; secure
+Transfer-Encoding: chunked
+Vary: Cookie, Accept-Encoding
+X-Backend-Server: developer2.webapp.scl3.mozilla.com
+X-Cache-Info: not cacheable; meta data too large
+X-kuma-revision: 1085259
+x-frame-options: DENY</pre>
+
+<h2 id="更多">更多</h2>
+
+<h3 id="相关内容">相关内容</h3>
+
+<ul>
+ <li><a href="/en-US/docs/Web/HTTP/Headers">HTTP头部列表</a> </li>
+</ul>