diff options
author | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:56:40 +0100 |
---|---|---|
committer | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:56:40 +0100 |
commit | 310fd066e91f454b990372ffa30e803cc8120975 (patch) | |
tree | d5d900deb656a5da18e0b60d00f0db73f3a2e88e /files/zh-cn/glossary/simple_header | |
parent | 8260a606c143e6b55a467edf017a56bdcd6cba7e (diff) | |
download | translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.gz translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.bz2 translated-content-310fd066e91f454b990372ffa30e803cc8120975.zip |
unslug zh-cn: move
Diffstat (limited to 'files/zh-cn/glossary/simple_header')
-rw-r--r-- | files/zh-cn/glossary/simple_header/index.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/simple_header/index.html b/files/zh-cn/glossary/simple_header/index.html new file mode 100644 index 0000000000..c2c1f71d4f --- /dev/null +++ b/files/zh-cn/glossary/simple_header/index.html @@ -0,0 +1,38 @@ +--- +title: 简单头部 +slug: Glossary/简单头部 +tags: + - HTTP + - 简单头部 + - 跨域 +translation_of: Glossary/Simple_header +--- +<p>以下的 <a href="/en-US/docs/Web/HTTP/Headers">HTTP headers</a>都可以被认为是简单头部:</p> + +<ul> + <li>{{HTTPHeader("Accept")}},</li> + <li>{{HTTPHeader("Accept-Language")}},</li> + <li>{{HTTPHeader("Content-Language")}},</li> + <li>{{HTTPHeader("Content-Type")}}并且值是 <code>application/x-www-form-urlencoded</code>, <code>multipart/form-data</code>, 或者 <code>text/plain之一的(忽略参数)</code>.</li> +</ul> + +<p>或者以下客户端头部之一的也可以被认为是简单头部:</p> + +<ul> + <li>{{HTTPHeader("DPR")}}</li> + <li>{{HTTPHeader("Downlink")}}</li> + <li>{{HTTPHeader("Save-Data")}}</li> + <li>{{HTTPHeader("Viewport-Width")}}</li> + <li>{{HTTPHeader("Width")}}</li> +</ul> + +<p>当只包含简单头部时,一个请求则被视为简单请求并且在<a href="/en-US/docs/Glossary/CORS">CORS</a>中不需要发送{{glossary("preflight request")}}。</p> + +<h2 id="Learn_more">Learn more</h2> + +<ul> + <li><a href="/en-US/docs/Web/HTTP/Headers">HTTP 头部</a></li> + <li>{{Glossary("Simple response header")}}</li> + <li>{{Glossary("Forbidden header name")}}</li> + <li>{{Glossary("Request header")}}</li> +</ul> |