MCPcopy Create free account
hub / github.com/arctic-cli/interface / responseMeta

Function responseMeta

packages/arctic/src/provider/usage.ts:982–998  ·  view source on GitHub ↗
(response: any)

Source from the content-addressed store, hash-verified

980 }
981
982 const responseMeta = (response: any) => {
983 const headers =
984 response && response.headers && typeof response.headers.entries === "function"
985 ? Object.fromEntries(response.headers.entries())
986 : undefined
987 return {
988 status: response?.status,
989 statusText: response?.statusText,
990 headers,
991 hasText: typeof response?.text === "function",
992 hasJson: typeof response?.json === "function",
993 hasArrayBuffer: typeof response?.arrayBuffer === "function",
994 type: response ? Object.prototype.toString.call(response) : "undefined",
995 ctor: response?.constructor?.name,
996 keys: response ? Object.keys(response) : undefined,
997 }
998 }
999
1000 await logDebug("fetchGoogleUsage.start")
1001 const auth = await Auth.get(input.provider.id)

Callers 2

loadManagedProjectFunction · 0.85
onboardManagedProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected