![]() |
VOOZH | about |
For serialising one or more links in HTTP headers, the HTTP Link header-field is used. It allows the server to point an interested client to another resource containing metadata about the requested resource. It is semantically equivalent to the HTML <link> element.
Syntax:
Link: <uri-reference>; param1="value1" param2="value2"
Directive: This header accept a single directive as mentioned above and described below. The link header contains parameters, which are separated with ; and are equivalent to attributes of the <link> element.
Examples:
Link: <https://www.geeksforgeeks.org/>; rel="preconnect"
Link:https://www.geeksforgeeks.org/; rel="preconnect"
Specifying multiple links: You can specify multiple links separated by commas.
Example:
Link: <https://example.one.com>; rel="preconnect", <https://example.two.com>; rel="preconnect", <https://example.three.com>; rel="preconnect"
Typical uses are:
Supported Browsers: The browser supported by HTTP-header link are unknown till now.