Link
El campo de encabezado de entidad de Link
HTTP proporciona un medio para serializar uno o más enlaces en encabezados HTTP. Es semánticamente equivalente al elemento HTML <link>
.
Sintaxis
Link: < uri-referencia >; parametro1=valor1; parametro2="valor2"
<uri-reference>
-
La referencia de URI debe estar encerrada entre
<
y>
.
Parametros
El encabezado del enlace contiene parámetros, que se separan con ;
y son equivalentes a los atributos del elemento <link>
.
Ejemplos
El URI debe estar encerrado entre <
y >
:
http
Link: <https://ejemplo.com>; rel="preconnect"
http
Link: https://mal.ejemplo; rel="preconnect"
Especificando multiples links
Se puede especificar varios enlaces separados por comas, por ejemplo:
Link: <https://uno.ejemplo.com>; rel="preconnect", <https://dos.ejemplo.com>; rel="preconnect", <https://tres.ejemplo.com>; rel="preconnect"
Especificaciones
Specification |
---|
Web Linking # header |
Compatibilidad con navegadores
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.