WordPress at a glance
function is not described

WP_REST_Response::link_header() public WP 4.4.0

Sets a single link header.

{} It's a method of the class: WP_REST_Response{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_REST_Response = new WP_REST_Response();
$WP_REST_Response->link_header( $rel, $link, $other );
$rel(string) (required)
Link relation. Either an IANA registered type, or an absolute URL.
$link(string) (required)
Target IRI for the link.
$other(array)
Other parameters to send, as an assocative array.
Default: empty array

Changelog

Since 4.4.0 Introduced.

Code of WP_REST_Response::link_header() WP 5.5.1

<?php
public function link_header( $rel, $link, $other = array() ) {
	$header = '<' . $link . '>; rel="' . $rel . '"';

	foreach ( $other as $key => $value ) {
		if ( 'title' === $key ) {
			$value = '"' . $value . '"';
		}

		$header .= '; ' . $key . '=' . $value;
	}
	$this->header( 'Link', $header, false );
}