Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 804 Bytes

fetchExternal.md

File metadata and controls

29 lines (15 loc) · 804 Bytes

quetch


quetch / fetchExternal

Function: fetchExternal()

fetchExternal(fetch): Handler<Request, Response, never, never>

Calls the provided fetch function, which defaults to the DOM fetch function, with the incoming query.

Parameters

fetch

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

A standard fetch function.

Returns

Handler<Request, Response, never, never>

Handler that returns a promise that resolves to the response.

Defined in

lib/middlewares/fetchExternal.ts:12