FetchPlugin.

Classes

FetchPlugableClass

Extends PlugableClass.

new FetchPlugableClass(): FetchPlugableClass

Returns FetchPlugableClass. Inherited from PlugableClass.constructor.

PropertyType
functionsFunctionRecord
json(arg1: EndpointRequest, arg2?: object) => Promise<DataOrError<JsonRecord>>
optionsStringRecord
resource(arg1: Fetched, arg2?: object) => Promise<DataOrError<string>>

Methods

install(definition, …ids): void | Errored

ParameterTypeDescription
definitionstring | Function | StringTuple
idsstring[]

Returns void | Errored. Inherited from PlugableClass.install.

toString(): string

Returns string. Inherited from PlugableClass.toString.

Interfaces

Fetched

Extends Sourced.Requested.

PropertyType
requestEndpointRequest
sourcestring

Type Aliases

_fetch

_fetch: "fetch"

Variables

$fetch

const $fetch: "fetch"

FetchPlugin

const FetchPlugin: FetchPlugableClass

Functions

audioFetch

audioFetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.

copyFetched

copyFetched(resource): Fetched

ParameterType
resourceFetched

Returns Fetched.

cssFetch

cssFetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.

imageFetch

imageFetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.

serverFetchPlug

serverFetchPlug(args, options?): Promise<DataOrError<string>>

ParameterType
argsResource
options?JobOptions

Returns Promise<DataOrError<string>>.

stringFetch

stringFetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.

ttfFetch

ttfFetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.

videoFetch

videoFetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.

waveformFetch

waveformFetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.

woff2Fetch

woff2Fetch(resource, opts?): Promise<DataOrError<string>>

ParameterType
resourceResource
opts?JobOptions

Returns Promise<DataOrError<string>>.