diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/entity_header/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/glossary/entity_header/index.html')
-rw-r--r-- | files/zh-cn/glossary/entity_header/index.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/entity_header/index.html b/files/zh-cn/glossary/entity_header/index.html new file mode 100644 index 0000000000..03a46d59b4 --- /dev/null +++ b/files/zh-cn/glossary/entity_header/index.html @@ -0,0 +1,25 @@ +--- +title: 实体报头 +slug: Glossary/Entity_header +tags: + - 实体报头 +translation_of: Glossary/Entity_header +--- +<p>实体报头{{glossary("header", "HTTP header")}}用来描述消息体内容。实体报头既可用于请求也可用于响应中。如{{HTTPHeader("Content-Length")}},{{HTTPHeader("Content-Language")}},{{HTTPHeader("Content-Encoding")}}之类的报头都是实体报头。</p> + +<p>尽管实体报头既非请求或响应报头,(由于它经常出现在请求头或响应头中)它们通常包含于此类概念中。</p> + +<p>在下面例子中,{{HTTPHeader("Content-Length")}}是一个实体报头,而{{HTTPHeader("Host")}}和{{HTTPHeader("User-Agent")}}是{{glossary("request header", "request headers")}}(请求报头):</p> + +<pre>POST /myform.html HTTP/1.1 +Host: developer.mozilla.org +User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 +Content-Length: 128</pre> + +<h2 id="更多信息">更多信息</h2> + +<h3 id="技术知识">技术知识</h3> + +<ul> + <li><a href="/en-US/docs/Web/HTTP/Headers">所有HTTP报头列表</a></li> +</ul> |