Skip to content

@sebastianwessel/quickjs v2.1.1


@sebastianwessel/quickjs / getDefaultFetchAdapter

Function: getDefaultFetchAdapter()

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

Defined in: src/adapter/fetch.ts:96

Create a default fetch adapter

Parameters

adapterOptions

GetFetchAdapterOptions = {}

Options for creating the fetch adapter

Returns

Function

A fetch adapter function

MDN Reference

Parameters

input

URL | RequestInfo

init?

RequestInit

Returns

Promise<Response>

MDN Reference

Parameters

input

string | URL | Request

init?

RequestInit

Returns

Promise<Response>