Link
HTTP 实体报头 Link
提供了序列化 HTTP 头部链接的方法。它在语义上与 HTML 元素 <link>
相等。
语法
Link: < uri-reference >; param1=value1; param2="value2"
<uri-reference>
-
URI reference 必须要用
<
和>
来关闭。
参数
link 头部包含以 ;
分隔的参数,这些参数与 HTML 元素 <link>
的属性一致。
示例
URI 必须要用 <
和 > 来关闭:
http
Link: <https://example.com>; rel="preload"
http
Link: https://bad.example; rel="preload"
规范
Specification |
---|
Web Linking # header |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Link | ||||||||||||
blocking | ||||||||||||
rel=expect | ||||||||||||
fetchpriority |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.