MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / get

Function get

app/utils/cloud/webdav.ts:37–50  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

35 },
36
37 async get(key: string) {
38 const res = await fetch(this.path(fileName, proxyUrl), {
39 method: "GET",
40 headers: this.headers(),
41 });
42
43 console.log("[WebDav] get key = ", key, res.status, res.statusText);
44
45 if (404 == res.status) {
46 return "";
47 }
48
49 return await res.text();
50 },
51
52 async set(key: string, value: string) {
53 const res = await fetch(this.path(fileName, proxyUrl), {

Callers 2

getItemMethod · 0.50
updateFunction · 0.50

Calls 2

fetchFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected