MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / getFile

Function getFile

web/packages/tca-analysis/src/services/index.ts:87–96  ·  view source on GitHub ↗
(url: string, data?: any)

Source from the content-addressed store, hash-verified

85}
86
87export function getFile(url: string, data?: any) {
88 return fetch(url, {
89 method: 'GET',
90 headers: {
91 'Content-Type': 'application/json;charset=UTF-8',
92 },
93 body: data ? JSON.stringify(data) : null,
94 }, true)
95 .catch((err: any) => Promise.reject(err));
96}
97
98export function postFile(url: string, data?: any) {
99 return fetch(url, {

Callers 1

getLogFunction · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected