A representation of a link between web resources.

Links are obtained via Resource.links, and provide a live view on the links defined in the resource. Changing the target of a link will change the resource content.

A Link contains (see Link_base):

  • from: an Anchor representing the place this link ‘points from’.
  • target: the link target, possibly relative URL. Can be modified.
  • absoluteTarget: the link target, expanded to an absolute URL if needed.
  • isSubresource: whether the link’s target is considered a subresource.
  • subresourceType: what type of subresource it links to (if applicable).
  • resource: if available, the Resource that this link targets.