MCPcopy Index your code
hub / github.com/ThatGuySam/doesitarm / defaultFetchMethod

Function defaultFetchMethod

helpers/api/client.js:23–32  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

21// const defaultFetchMethod = (...args) => console.log(...args) // mock
22
23const defaultFetchMethod = async function (...args) {
24 return requestJson(...args)
25 .catch( error => {
26 if ( error?.response?.status !== 404 ) {
27 console.error( error )
28 }
29
30 throw error
31 })
32}
33
34// https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
35const HTTP_METHODS = [

Callers

nothing calls this directly

Calls 1

requestJsonFunction · 0.90

Tested by

no test coverage detected