aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTung Alissa <80032304+alissa-tung@users.noreply.github.com>2021-04-17 10:23:40 +0800
committerIrvin <irvinfly@gmail.com>2021-04-19 14:43:59 +0800
commit26e55648dfbf0b809d21aa4bb3a02e5980189d14 (patch)
tree31f935a7f5baa11e1d1fe028612a24b7749d6d57
parent6e95ccf9db4c584fced5ae0ef5504b9b946d4a16 (diff)
downloadtranslated-content-26e55648dfbf0b809d21aa4bb3a02e5980189d14.tar.gz
translated-content-26e55648dfbf0b809d21aa4bb3a02e5980189d14.tar.bz2
translated-content-26e55648dfbf0b809d21aa4bb3a02e5980189d14.zip
Update index.html
-rw-r--r--files/zh-cn/glossary/entity_header/index.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/files/zh-cn/glossary/entity_header/index.html b/files/zh-cn/glossary/entity_header/index.html
index 03a46d59b4..7efb1f05d1 100644
--- a/files/zh-cn/glossary/entity_header/index.html
+++ b/files/zh-cn/glossary/entity_header/index.html
@@ -5,13 +5,17 @@ tags:
- 实体报头
translation_of: Glossary/Entity_header
---
-<p>实体报头{{glossary("header", "HTTP header")}}用来描述消息体内容。实体报头既可用于请求也可用于响应中。如{{HTTPHeader("Content-Length")}},{{HTTPHeader("Content-Language")}},{{HTTPHeader("Content-Encoding")}}之类的报头都是实体报头。</p>
+<div class="notecard note">
+<p>当前的 HTTP/1.1 规范中不再提及实体、实体报头和实体的体。这中的有些字段现在被称为表示头字段(<a href="https://datatracker.ietf.org/doc/html/rfc7231#section-3" rel="noopener">RFC 7231, section 3: Representations</a>)。</p>
+</div>
+
+<p>实体报头是描述了一个 HTTP 消息有效载荷(即关于消息主体的元数据)的 HTTP 报头,见 {{glossary("header", "HTTP header")}}。实体报头包括 {{HTTPHeader("Content-Length")}}、{{HTTPHeader("Content-Language")}}、{{HTTPHeader("Content-Encoding")}}、{{HTTPHeader("Content-Type")}} 和 {{HTTPHeader("Expires")}} 等。实体报头可能同时存在于 HTTP 请求和响应信息中。</p>
<p>尽管实体报头既非请求或响应报头,(由于它经常出现在请求头或响应头中)它们通常包含于此类概念中。</p>
-<p>在下面例子中,{{HTTPHeader("Content-Length")}}是一个实体报头,而{{HTTPHeader("Host")}}和{{HTTPHeader("User-Agent")}}是{{glossary("request header", "request headers")}}(请求报头):</p>
+<p>在下面的例子中,{{HTTPHeader("Content-Length")}} 是实体报头,而 {{HTTPHeader("Host")}} 和 {{HTTPHeader("User-Agent")}} 是请求报头。</p>
-<pre>POST /myform.html HTTP/1.1
+<pre class="brush: plain">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>
@@ -21,5 +25,5 @@ Content-Length: 128</pre>
<h3 id="技术知识">技术知识</h3>
<ul>
- <li><a href="/en-US/docs/Web/HTTP/Headers">所有HTTP报头列表</a></li>
+ <li><a href="/en-US/docs/Web/HTTP/Headers">所有 HTTP 报头列表</a></li>
</ul>