MCPcopy Create free account
hub / github.com/Botloader/botloader / CreateFetcher

Function CreateFetcher

frontend/src/Util.tsx:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { ApiFetcher } from "botloader-common";
2
3export function CreateFetcher(): ApiFetcher {
4 return {
5 fetch: async (path, opts) => await window.fetch(path, {
6 ...opts,
7 // credentials: "include",
8 })
9 }
10}

Callers 4

SessionContext.tsxFile · 0.90
SessionProviderFunction · 0.90
restoreSessionFunction · 0.90
completeLoginFunction · 0.90

Calls 1

fetchMethod · 0.65

Tested by

no test coverage detected