Skip to main content

FetchImplementationProvider

Class wrapper for providing a fetch implementation. The class wrapper is used to distinguish the fetchImplementation option in [AbstractRemoteOptions] from the general fetch method which is typeof "function"

Constructors

new FetchImplementationProvider()

new FetchImplementationProvider(): FetchImplementationProvider

Returns

FetchImplementationProvider

Methods

getFetch()

getFetch(): (input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>

Returns

Function

MDN Reference

Parameters
ParameterType
inputRequestInfo | URL
init?RequestInit
Returns

Promise<Response>

Parameters
ParameterType
inputRequestInfo
init?RequestInit
Returns

Promise<Response>

Parameters
ParameterType
inputRequestInfo
init?RequestInit
Returns

Promise<Response>

Parameters
ParameterType
inputRequestInfo
init?RequestInit
Returns

Promise<Response>

Parameters
ParameterType
inputRequestInfo
init?RequestInit
Returns

Promise<Response>

Parameters
ParameterType
inputstring | Request | URL
init?RequestInit
Returns

Promise<Response>