diff --git a/core/core.link_relation.yml b/core/core.link_relation.yml
new file mode 100644
index 0000000..c5c3363
--- /dev/null
+++ b/core/core.link_relation.yml
@@ -0,0 +1,260 @@
+# These are Drupal-specific link relations.
+add-form:
+  relationship: https://drupal.org/link-relations/add-form
+  description: A form where a resource of this type can be created
+create:
+  relationship: https://drupal.org/link-relations/create
+  description: A REST resource URL where a resource of this type can be created
+
+# These are the ones from IANA itself.
+about:
+  description: "Refers to a resource that is the subject of the link's context."
+  reference: '[RFC6903], section 2'
+alternate:
+  description: 'Refers to a substitute for this context'
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-alternate]'
+appendix:
+  description: 'Refers to an appendix.'
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+archives:
+  description: "Refers to a collection of records, documents, or other materials of historical interest."
+  reference: '[http://www.w3.org/TR/2011/WD-html5-20110113/links.html#rel-archives]'
+author:
+  description: "Refers to the context's author."
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-author]'
+blocked-by:
+  description: "Identifies the entity that blocks access to a resource following receipt of a legal demand."
+  reference: '[RFC7725]'
+bookmark:
+  description: 'Gives a permanent link to use for bookmarking purposes.'
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-bookmark]'
+canonical:
+  description: 'Designates the preferred version of a resource (the IRI and its contents).'
+  reference: '[RFC6596]'
+chapter:
+  description: 'Refers to a chapter in a collection of resources.'
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+collection:
+  description: 'The target IRI points to a resource which represents the collection resource for the context IRI.'
+  reference: '[RFC6573]'
+contents:
+  description: 'Refers to a table of contents.'
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+copyright:
+  description: "Refers to a copyright statement that applies to the link's context."
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+create-form:
+  description: 'The target IRI points to a resource where a submission form can be obtained.'
+  reference: '[RFC6861]'
+current:
+  description: "Refers to a resource containing the most recent item(s) in a collection of resources."
+  reference: '[RFC5005]'
+derivedfrom:
+  description: 'The target IRI points to a resource from which this material was derived.'
+  reference: '[draft-hoffman-xml2rfc]'
+describedby:
+  description: "Refers to a resource providing information about the link's context."
+  reference: '[http://www.w3.org/TR/powder-dr/#assoc-linking]'
+describes:
+  description: "The relationship A 'describes' B asserts that resource A provides a description of resource B. There are no constraints on the format or representation of either A or B, neither are there any further constraints on either resource."
+  reference: '[RFC6892]'
+  notes: "This link relation type is the inverse of the 'describedby' relation type.  While 'describedby' establishes a relation from the described resource back to the resource that describes it, 'describes' established a relation from the describing resource to the resource it describes.  If B is 'describedby' A, then A 'describes' B."
+disclosure:
+  description: "Refers to a list of patent disclosures made with respect to  material for which 'disclosure' relation is specified."
+  reference: '[RFC6579]'
+dns-prefetch:
+  description: "Used to indicate an origin that will be used to fetch required  resources for the link context, and that the user agent ought to resolve  as early as possible."
+  reference: '[https://www.w3.org/TR/resource-hints/]'
+duplicate:
+  description: "Refers to a resource whose available representations are byte-for-byte identical with the corresponding representations of the context IRI."
+  reference: '[RFC6249]'
+  notes: "This relation is for static resources.  That is, an HTTP GET request on any duplicate will return the same representation.  It does not make sense for dynamic or POSTable resources and should not be used for them."
+edit:
+  description: "Refers to a resource that can be used to edit the link's context."
+  reference: '[RFC5023]'
+edit-form:
+  description: "The target IRI points to a resource where a submission form for editing associated resource can be obtained."
+  reference: '[RFC6861]'
+edit-media:
+  description: "Refers to a resource that can be used to edit media associated with the link's context."
+  reference: '[RFC5023]'
+enclosure:
+  description: "Identifies a related resource that is potentially large and might require special handling."
+  reference: '[RFC4287]'
+first:
+  description: "An IRI that refers to the furthest preceding resource in a series of resources."
+  reference: '[RFC5988]'
+  notes: "This relation type registration did not indicate a reference.  Originally requested by Mark Nottingham in December 2004."
+glossary:
+  description: 'Refers to a glossary of terms.'
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+help:
+  description: 'Refers to context-sensitive help.'
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-help]'
+hosts:
+  description: "Refers to a resource hosted by the server indicated by the link context."
+  reference: '[RFC6690]'
+  notes: "This relation is used in CoRE where links are retrieved as a \"/.well-known/core\" resource representation, and is the default relation type in the CoRE Link Format."
+hub:
+  description: "Refers to a hub that enables registration for notification of updates to the context."
+  reference: '[http://pubsubhubbub.googlecode.com]'
+  notes: 'This relation type was requested by Brett Slatkin.'
+icon:
+  description: "Refers to an icon representing the link's context."
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-icon]'
+index:
+  description: 'Refers to an index.'
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+item:
+  description: 'The target IRI points to a resource that is a member of the collection represented by the context IRI.'
+  reference: '[RFC6573]'
+last:
+  description: "An IRI that refers to the furthest following resource in a series of resources."
+  reference: '[RFC5988]'
+  notes: "This relation type registration did not indicate a reference. Originally requested by Mark Nottingham in December 2004."
+latest-version:
+  description: "Points to a resource containing the latest (e.g., current) version of the context."
+  reference: '[RFC5829]'
+license:
+  description: 'Refers to a license associated with this context.'
+  reference: '[RFC4946]'
+  notes: "For implications of use in HTML, see:  http://www.w3.org/TR/html5/links.html#link-type-license"
+lrdd:
+  description: "Refers to further information about the link's context, expressed as a LRDD (\"Link-based Resource Descriptor Document\") resource.  See [RFC6415] for information about processing this relation type in host-meta documents. When used elsewhere, it refers to additional links and other metadata. Multiple instances indicate additional LRDD resources. LRDD resources MUST have an \"application/xrd+xml\" representation, and MAY have others."
+  reference: '[RFC6415]'
+memento:
+  description: 'The Target IRI points to a Memento, a fixed resource that will not change state anymore.'
+  reference: '[RFC7089]'
+  notes: "A Memento for an Original Resource is a resource that encapsulates a prior state of the Original Resource."
+monitor:
+  description: 'Refers to a resource that can be used to monitor changes in an HTTP resource.'
+  reference: '[RFC5989]'
+monitor-group:
+  description: 'Refers to a resource that can be used to monitor changes in a specified group of HTTP resources.'
+  reference: '[RFC5989]'
+next:
+  description: "Indicates that the link's context is a part of a series, and that the next in the series is the link target."
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-next]'
+next-archive:
+  description: 'Refers to the immediately following archive resource.'
+  reference: '[RFC5005]'
+nofollow:
+  description: 'Indicates that the context’s original author or publisher does not endorse the link target.'
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-nofollow]'
+noreferrer:
+  description: 'Indicates that no referrer information is to be leaked when following the link.'
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-noreferrer]'
+original:
+  description: 'The Target IRI points to an Original Resource.'
+  reference: '[RFC7089]'
+  notes: "An Original Resource is a resource that exists or used to exist, and for which access to one of its prior states may be required."
+payment:
+  description: 'Indicates a resource where payment is accepted.'
+  reference: '[RFC5988]'
+  notes: "This relation type registration did not indicate a reference.  Requested by Joshua Kinberg and Robert Sayre.  It is meant as a general way to facilitate acts of payment, and thus this specification makes no assumptions on the type of payment or transaction protocol.  Examples may include a web page where donations are accepted or where goods and services are available for purchase. rel=\"payment\" is not intended to initiate an automated transaction.  In Atom documents, a link element with a rel=\"payment\" attribute may exist at the feed/channel level and/or the entry/item level.  For example, a rel=\"payment\" link at the feed/channel level may point to a \"tip jar\" URI, whereas an entry/ item containing a book review may include a rel=\"payment\" link that points to the location where the book may be purchased through an online retailer."
+pingback:
+  description: 'Gives the address of the pingback resource for the link context.'
+  reference: '[http://www.hixie.ch/specs/pingback/pingback]'
+preconnect:
+  description: "Used to indicate an origin that will be used to fetch required  resources for the link context. Initiating an early connection, which  includes the DNS lookup, TCP handshake, and optional TLS negotiation,  allows the user agent to mask the high latency costs of establishing a  connection."
+  reference: '[https://www.w3.org/TR/resource-hints/]'
+predecessor-version:
+  description: "Points to a resource containing the predecessor version in the version history."
+  reference: '[RFC5829]'
+prefetch:
+  description: "The prefetch link relation type is used to identify a resource  that might be required by the next navigation from the link context, and  that the user agent ought to fetch, such that the user agent can deliver a  faster response once the resource is requested in the future."
+  reference: '[http://www.w3.org/TR/resource-hints/]'
+preload:
+  description: "Refers to a resource that should be loaded early in the  processing of the link's context, without blocking rendering."
+  reference: '[http://www.w3.org/TR/preload/]'
+  notes: 'Additional target attributes establish the detailed fetch properties of the link.'
+prerender:
+  description: "Used to identify a resource that might be required by the next  navigation from the link context, and that the user agent ought to fetch  and execute, such that the user agent can deliver a faster response once  the resource is requested in the future."
+  reference: '[https://www.w3.org/TR/resource-hints/]'
+prev:
+  description: "Indicates that the link's context is a part of a series, and that the previous in the series is the link target."
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-prev]'
+preview:
+  description: "Refers to a resource that provides a preview of the link's context."
+  reference: '[RFC6903], section 3'
+previous:
+  description: "Refers to the previous resource in an ordered series of resources.  Synonym for \"prev\"."
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+prev-archive:
+  description: 'Refers to the immediately preceding archive resource.'
+  reference: '[RFC5005]'
+privacy-policy:
+  description: "Refers to a privacy policy associated with the link's context."
+  reference: '[RFC6903], section 4'
+profile:
+  description: "Identifying that a resource representation conforms to a certain profile, without affecting the non-profile semantics of the resource representation."
+  reference: '[RFC6906]'
+  notes: "Profile URIs are primarily intended to be used as identifiers, and thus clients SHOULD NOT indiscriminately access profile URIs."
+related:
+  description: 'Identifies a related resource.'
+  reference: '[RFC4287]'
+replies:
+  description: "Identifies a resource that is a reply to the context of the link."
+  reference: '[RFC4685]'
+search:
+  description: "Refers to a resource that can be used to search through the link's context and related resources."
+  reference: '[http://www.opensearch.org/Specifications/OpenSearch/1.1]'
+section:
+  description: 'Refers to a section in a collection of resources.'
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+self:
+  description: "Conveys an identifier for the link's context."
+  reference: '[RFC4287]'
+service:
+  description: "Indicates a URI that can be used to retrieve a service document."
+  reference: '[RFC5023]'
+  notes: "When used in an Atom document, this relation type specifies Atom Publishing Protocol service documents by default.  Requested by James Snell."
+start:
+  description: "Refers to the first resource in a collection of resources."
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+stylesheet:
+  description: 'Refers to a stylesheet.'
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-stylesheet]'
+subsection:
+  description: "Refers to a resource serving as a subsection in a collection of resources."
+  reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
+successor-version:
+  description: "Points to a resource containing the successor version in the version history."
+  reference: '[RFC5829]'
+tag:
+  description: "Gives a tag (identified by the given address) that applies to the current document."
+  reference: '[http://www.w3.org/TR/html5/links.html#link-type-tag]'
+terms-of-service:
+  description: "Refers to the terms of service associated with the link's context."
+  reference: '[RFC6903], section 5'
+timegate:
+  description: 'The Target IRI points to a TimeGate for an Original Resource.'
+  reference: '[RFC7089]'
+  notes: "A TimeGate for an Original Resource is a resource that is capable of datetime negotiation to support access to prior states of the Original Resource."
+timemap:
+  description: 'The Target IRI points to a TimeMap for an Original Resource.'
+  reference: '[RFC7089]'
+  notes: "A TimeMap for an Original Resource is a resource from which a list of URIs of Mementos of the Original Resource is available."
+type:
+  description: "Refers to a resource identifying the abstract semantic type of which the link's context is considered to be an instance."
+  reference: '[RFC6903], section 6'
+up:
+  description: "Refers to a parent document in a hierarchy of documents."
+  reference: '[RFC5988]'
+  notes: "This relation type registration did not indicate a reference.  Requested by Noah Slater."
+version-history:
+  description: "Points to a resource containing the version history for the context."
+  reference: '[RFC5829]'
+via:
+  description: "Identifies a resource that is the source of the information in the link's context."
+  reference: '[RFC4287]'
+webmention:
+  description: "Identifies a target URI that supports the Webmention protcol. This allows clients that mention a resource in some form of publishing process to contact that endpoint and inform it that this resource has been mentioned."
+  reference: '[http://www.w3.org/TR/webmention/]'
+  notes: "This is a similar \"Linkback\" mechanism to the ones of Refback, Trackback, and Pingback. It uses a different protocol, though, and thus should be discoverable through its own link relation type."
+working-copy:
+  description: 'Points to a working copy for this resource.'
+  reference: '[RFC5829]'
+working-copy-of:
+  description: "Points to the versioned resource from which this working copy was obtained."
+  reference: '[RFC5829]'
diff --git a/core/core.services.yml b/core/core.services.yml
index 6310c21..c167e78 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -454,6 +454,9 @@ services:
   http_client_factory:
     class: Drupal\Core\Http\ClientFactory
     arguments: ['@http_handler_stack']
+  plugin.manager.link_relation:
+    class: \Drupal\Core\Http\LinkRelationManager
+    arguments: ['@app.root', '@module_handler']
   theme.negotiator:
     class: Drupal\Core\Theme\ThemeNegotiator
     arguments: ['@access_check.theme']
diff --git a/core/lib/Drupal/Core/Http/LinkRelation.php b/core/lib/Drupal/Core/Http/LinkRelation.php
new file mode 100644
index 0000000..98e84e2
--- /dev/null
+++ b/core/lib/Drupal/Core/Http/LinkRelation.php
@@ -0,0 +1,47 @@
+<?php
+
+namespace Drupal\Core\Http;
+
+use Drupal\Core\Plugin\PluginBase;
+
+/**
+ * Defines a single link relationship.
+ */
+class LinkRelation extends PluginBase implements LinkRelationInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getName() {
+    return $this->pluginDefinition['name'];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getRelationshipUrl() {
+    return isset($this->pluginDefinition['relationship']) ? $this->pluginDefinition['relationship'] : $this->getName();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getDescription() {
+    return isset($this->pluginDefinition['description']) ? $this->pluginDefinition['description'] : '';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getReference() {
+    return isset($this->pluginDefinition['reference']) ? $this->pluginDefinition['reference'] : '';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getNotes() {
+    return isset($this->pluginDefinition['notes']) ? $this->pluginDefinition['notes'] : '';
+  }
+
+}
diff --git a/core/lib/Drupal/Core/Http/LinkRelationInterface.php b/core/lib/Drupal/Core/Http/LinkRelationInterface.php
new file mode 100644
index 0000000..8bad760
--- /dev/null
+++ b/core/lib/Drupal/Core/Http/LinkRelationInterface.php
@@ -0,0 +1,63 @@
+<?php
+
+namespace Drupal\Core\Http;
+
+/**
+ * Defines a single link relations.
+ *
+ * An example of a link relationship is 'canonical'. It represents a canonical,
+ * definite representation of a resource.
+ *
+ * @see \Drupal\Core\Http\LinkRelationManager
+ * @see https://tools.ietf.org/html/rfc5988#page-6
+ */
+interface LinkRelationInterface {
+
+  /**
+   * Returns the link relation name.
+   *
+   * @return string
+   *   The name of the relation.
+   *
+   * @see https://tools.ietf.org/html/rfc5988#section-6.2.1
+   */
+  public function getName();
+
+  /**
+   * If the relationship is not a IANA one, provide the URL to the definition.
+   *
+   * @return string
+   *   The relationship URL.
+   */
+  public function getRelationshipUrl();
+
+  /**
+   * Returns the link relation description.
+   *
+   * @return string
+   *   The link relation description.
+   *
+   * @see https://tools.ietf.org/html/rfc5988#section-6.2.1
+   */
+  public function getDescription();
+
+  /**
+   * Returns the URL pointing to the reference of the link relation.
+   *
+   * @return string
+   *   The URL pointing to the reference.
+   *
+   * @see https://tools.ietf.org/html/rfc5988#section-6.2.1
+   */
+  public function getReference();
+
+  /**
+   * Returns some extra notes/comments about this link relation.
+   *
+   * @return string
+   *
+   * @see https://tools.ietf.org/html/rfc5988#section-6.2.1
+   */
+  public function getNotes();
+
+}
diff --git a/core/lib/Drupal/Core/Http/LinkRelationManager.php b/core/lib/Drupal/Core/Http/LinkRelationManager.php
new file mode 100644
index 0000000..29b731c
--- /dev/null
+++ b/core/lib/Drupal/Core/Http/LinkRelationManager.php
@@ -0,0 +1,54 @@
+<?php
+
+namespace Drupal\Core\Http;
+
+use Drupal\Core\Extension\Extension;
+use Drupal\Core\Extension\ModuleHandlerInterface;
+use Drupal\Core\Plugin\DefaultPluginManager;
+use Drupal\Core\Plugin\Discovery\YamlDiscovery;
+
+/**
+ * Provides a default plugin manager for link relations.
+ *
+ * @see \Drupal\Core\Http\LinkRelationInterface
+ */
+class LinkRelationManager extends DefaultPluginManager implements LinkRelationManagerInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected $defaults = [
+    'class' => LinkRelation::class,
+  ];
+
+  /**
+   * The app root.
+   *
+   * @var string
+   */
+  protected $root;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct($root, ModuleHandlerInterface $module_handler) {
+    $this->root = $root;
+    $this->pluginInterface = LinkRelationInterface::class;
+    $this->moduleHandler = $module_handler;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDiscovery() {
+    if (!$this->discovery) {
+      $directories = ['core' => $this->root . '/core'];
+      $directories += array_map(function (Extension $extension) {
+        return $this->root . '/' . $extension->getPath();
+      }, $this->moduleHandler->getModuleList());
+      $this->discovery = new YamlDiscovery('link_relation', $directories);
+    }
+    return $this->discovery;
+  }
+
+}
diff --git a/core/lib/Drupal/Core/Http/LinkRelationManagerInterface.php b/core/lib/Drupal/Core/Http/LinkRelationManagerInterface.php
new file mode 100644
index 0000000..5ac742b
--- /dev/null
+++ b/core/lib/Drupal/Core/Http/LinkRelationManagerInterface.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Drupal\Core\Http;
+
+use Drupal\Component\Plugin\PluginManagerInterface;
+
+/**
+ * Provides a plugin manager for link relations.
+ *
+ * @see \Drupal\Core\Http\LinkRelationInterface
+ */
+interface LinkRelationManagerInterface extends PluginManagerInterface {
+}
diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
index d6833c0..4030933 100644
--- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
+++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
@@ -3,12 +3,15 @@
 namespace Drupal\rest\Plugin\rest\resource;
 
 use Drupal\Component\Plugin\DependentPluginInterface;
+use Drupal\Component\Plugin\PluginManagerInterface;
+use Drupal\Core\Cache\CacheableResponseInterface;
 use Drupal\Core\Config\Entity\ConfigEntityType;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Entity\FieldableEntityInterface;
 use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Entity\EntityStorageException;
+use Drupal\Core\Http\LinkRelationManagerInterface;
 use Drupal\rest\Plugin\ResourceBase;
 use Drupal\rest\ResourceResponse;
 use Psr\Log\LoggerInterface;
@@ -54,6 +57,13 @@ class EntityResource extends ResourceBase implements DependentPluginInterface {
   protected $configFactory;
 
   /**
+   * The link relation manager used to create HTTP header links.
+   *
+   * @var \Drupal\Core\Http\LinkRelationManagerInterface
+   */
+  protected $linkRelationManager;
+
+  /**
    * Constructs a Drupal\rest\Plugin\rest\resource\EntityResource object.
    *
    * @param array $configuration
@@ -70,11 +80,14 @@ class EntityResource extends ResourceBase implements DependentPluginInterface {
    *   A logger instance.
    * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    *   The config factory.
+   * @param \Drupal\Core\Http\LinkRelationManagerInterface $link_relation_manager
+   *   The link relation manager.
    */
-  public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, $serializer_formats, LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
+  public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, $serializer_formats, LoggerInterface $logger, ConfigFactoryInterface $config_factory, LinkRelationManagerInterface $link_relation_manager) {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $serializer_formats, $logger);
     $this->entityType = $entity_type_manager->getDefinition($plugin_definition['entity_type']);
     $this->configFactory = $config_factory;
+    $this->linkRelationManager = $link_relation_manager;
   }
 
   /**
@@ -88,7 +101,8 @@ public static function create(ContainerInterface $container, array $configuratio
       $container->get('entity_type.manager'),
       $container->getParameter('serializer.formats'),
       $container->get('logger.factory')->get('rest'),
-      $container->get('config.factory')
+      $container->get('config.factory'),
+      $container->get('plugin.manager.link_relation')
     );
   }
 
@@ -125,6 +139,8 @@ public function get(EntityInterface $entity) {
       }
     }
 
+    $this->addLinkHeaders($entity, $response);
+
     return $response;
   }
 
@@ -333,4 +349,33 @@ public function calculateDependencies() {
     }
   }
 
+  /**
+   * Adds link headers to a response.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   The entity.
+   * @param \Drupal\Core\Cache\CacheableResponseInterface|\Symfony\Component\HttpFoundation\Response $response
+   *   The response.
+   *
+   * @see https://tools.ietf.org/html/rfc5988#section-5
+   */
+  protected function addLinkHeaders(EntityInterface $entity, CacheableResponseInterface $response) {
+    foreach ($entity->getEntityType()->getLinkTemplates() as $relation_name => $link_template) {
+      if ($definition = $this->linkRelationManager->getDefinition($relation_name, FALSE)) {
+        $generator_url = $entity->toUrl($relation_name)
+          ->setAbsolute(TRUE)
+          ->toString(TRUE);
+        $response->addCacheableDependency($generator_url);
+        $uri = $generator_url->getGeneratedUrl();
+        $relationship = $relation_name;
+        if (!empty($definition['relationship'])) {
+          $relationship = $definition['relationship'];
+        }
+
+        $link_header = '<' . $uri . '>; rel="' . $relationship . '"';
+        $response->headers->set('Link', $link_header, FALSE);
+      }
+    }
+  }
+
 }
diff --git a/core/modules/rest/src/Tests/NodeTest.php b/core/modules/rest/src/Tests/NodeTest.php
index 95dc475..76b493f 100644
--- a/core/modules/rest/src/Tests/NodeTest.php
+++ b/core/modules/rest/src/Tests/NodeTest.php
@@ -82,6 +82,7 @@ public function testNodes() {
     $this->httpRequest($node->urlInfo()->setRouteParameter('_format', $this->defaultFormat), 'GET');
     $this->assertResponse(200);
     $this->assertHeader('Content-type', $this->defaultMimeType);
+    $this->assertLinkHeaders($node, ['canonical' => 'canonical', 'edit-form' => 'edit-form', 'version-history' => 'version-history']);
 
     // Also check that JSON works and the routing system selects the correct
     // REST route.
@@ -89,6 +90,7 @@ public function testNodes() {
     $this->httpRequest($node->urlInfo()->setRouteParameter('_format', 'json'), 'GET');
     $this->assertResponse(200);
     $this->assertHeader('Content-type', 'application/json');
+    $this->assertLinkHeaders($node, ['canonical' => 'canonical', 'edit-form' => 'edit-form', 'version-history' => 'version-history']);
 
     // Check that a simple PATCH update to the node title works as expected.
     $this->enableNodeConfiguration('PATCH', 'update');
diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php
index a7fb62a..1f9dbb2 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -3,6 +3,7 @@
 namespace Drupal\rest\Tests;
 
 use Drupal\Core\Config\Entity\ConfigEntityType;
+use Drupal\Core\Entity\EntityInterface;
 use Drupal\node\NodeInterface;
 use Drupal\rest\RestResourceConfigInterface;
 use Drupal\simpletest\WebTestBase;
@@ -550,4 +551,29 @@ protected function configEntityValues($entity_type_id) {
     return $values;
   }
 
+  /**
+   * Tests whether the link header was produced correctly.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   The entity.
+   * @param array $link_relationships
+   *   The used link relationships.
+   *
+   * @return bool
+   */
+  protected function assertLinkHeaders(EntityInterface $entity, array $link_relationships = ['canonical', 'edit-form']) {
+    // Add expected Link Headers.
+    $link_headers = [];
+    foreach ($link_relationships as $relation_name => $relationship) {
+      if ($entity->hasLinkTemplate($relation_name)) {
+        $canonical_url = $entity->toUrl($relation_name)
+          ->setAbsolute(TRUE)
+          ->toString(TRUE)
+          ->getGeneratedUrl();
+        $link_headers[] = '<' . $canonical_url . '>; rel="' . $relationship . '"';
+      }
+    }
+    return $this->assertHeader('Link', implode(',', $link_headers));
+  }
+
 }
diff --git a/core/modules/rest/src/Tests/ReadTest.php b/core/modules/rest/src/Tests/ReadTest.php
index dc6f574..e338daf 100644
--- a/core/modules/rest/src/Tests/ReadTest.php
+++ b/core/modules/rest/src/Tests/ReadTest.php
@@ -118,9 +118,13 @@ public function testRead() {
         $entity->save();
         $response = $this->httpRequest($this->getReadUrl($entity), 'GET');
         $this->assertResponse(200);
-        $this->assertHeader('content-type', $this->defaultMimeType);
         $data = Json::decode($response);
         $this->assertFalse(isset($data['field_test_text']), 'Field access protected field is not visible in the response.');
+        $this->assertLinkHeaders($entity, [
+          'canonical' => 'canonical',
+          'add-form' => 'https://drupal.org/link-relations/add-form',
+          'edit-form' => 'edit-form',
+        ]);
       }
     }
     // Try to read a resource, the user entity, which is not REST API enabled.
diff --git a/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php b/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php
new file mode 100644
index 0000000..07adfae
--- /dev/null
+++ b/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drupal\KernelTests\Core\Http;
+
+use Drupal\Core\Http\LinkRelation;
+use Drupal\KernelTests\KernelTestBase;
+
+/**
+ * Tests link relationships in Drupal.
+ *
+ * @group HTTP
+ */
+class LinkRelationsTest extends KernelTestBase {
+
+  public function testAvailableLinkRelationships() {
+    /** @var \Drupal\Core\Http\LinkRelationManager $link_relation_manager */
+    $link_relation_manager = \Drupal::service('plugin.manager.link_relation');
+    /** @var \Drupal\Core\Http\LinkRelationInterface $canonical */
+    $canonical = $link_relation_manager->createInstance('canonical');
+    $this->assertInstanceOf(LinkRelation::class, $canonical);
+    $this->assertEquals('[RFC6596]', $canonical->getReference());
+
+    // Test a couple of examples.
+    $this->assertContains('about', array_keys($link_relation_manager->getDefinitions()));
+    $this->assertContains('original', array_keys($link_relation_manager->getDefinitions()));
+    $this->assertContains('type', array_keys($link_relation_manager->getDefinitions()));
+  }
+
+}
