API Docs for:
Show:

PrefetchConfig Class

Prefetch process consists into recovering from the Web those resources configured in offliner. To do so, you call use, then list the resources by calling resources.

Item Index

Methods

fetchers

() Fetcher[]

Returns:

Fetcher[]:

the registered fetchers.

resources

(
  • resources
)
chainable

Add resources to the prefetch list of resources.

Parameters:

  • resources Resource | Resource[]

    The list of resources to be added. Each resource in the list is normalized by the last registered fetcher so some fetchers allows a short syntax for its resources.

use

(
  • fetcher
)
chainable

Register a . The fetcher will be used to retrieve the resources of the fetcher's type.

Parameters:

  • fetcher Fetcher

    The fetcher to be used for resources of fetcher's type.