MCPcopy Create free account
hub / github.com/Kong/insomnia / configureFetch

Function configureFetch

packages/insomnia-api/src/fetch.ts:19–25  ·  view source on GitHub ↗
(_fetch: Fetch)

Source from the content-addressed store, hash-verified

17
18let configured = false;
19export function configureFetch(_fetch: Fetch) {
20 if (configured) {
21 throw new Error('Fetch has already been configured and cannot be re-configured.');
22 }
23 fetch = _fetch;
24 configured = true;
25}
26
27export class ResponseFailError extends Error {
28 response: Response;

Callers 3

cli.tsFile · 0.90
entry.main.tsFile · 0.90
entry.client.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected