get method

  1. @override
Resource get(
  1. Link link

Returns the Resource at the given link's HREF.

A Resource is always returned, since for some cases we can't know if it exists before actually fetching it, such as HTTP. Therefore, errors are handled at the Resource level.


Resource get(Link link) => FailureResource(link, ResourceException.notFound);