type FetchGetUrlFunc: (req, signal?) => Promise<GetUrlResponse>;

Used to perform a fetch; use this to override the underlying network fetch layer. In NodeJS, the default uses the “http” and “https” libraries and in the browser fetch is used. If you wish to use Axios, this is how you would register it.

Parameters

ParameterType
reqFetchRequest
signal?FetchCancelSignal

Returns

Promise<GetUrlResponse>

Source

utils/fetch.ts:82