API Docs for:
Show:

Fetcher Class

A fetcher is an object for handling resouces during the prefetching prefetch process. A fetcher must include a type and normalize and prefetch implementations.

Item Index

Properties

Methods

normalize

(
  • resource
)

Normalizes a resource not following the convention.

Parameters:

  • resource Any

    The denormalized resource.

prefetch

(
  • resource
  • cache
)

Retrieve a set of resources.

Parameters:

  • resource Resource[]

    The denormalized resource.

  • cache Cache

    The cache to populate.

Properties

type

String

While prefetching resources, each resource has a type. The resource is handled by the fetcher whose type match it.