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

Function set

app/utils/cloud/webdav.ts:52–60  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

50 },
51
52 async set(key: string, value: string) {
53 const res = await fetch(this.path(fileName, proxyUrl), {
54 method: "PUT",
55 headers: this.headers(),
56 body: value,
57 });
58
59 console.log("[WebDav] set key = ", key, res.status, res.statusText);
60 },
61
62 headers() {
63 const auth = btoa(config.username + ":" + config.password);

Callers 15

setItemMethod · 0.50
markUpdateFunction · 0.50
updateFunction · 0.50
createPersistStoreFunction · 0.50
fetchFunction · 0.50
createFunction · 0.50
updatePluginFunction · 0.50
deleteFunction · 0.50
addFunction · 0.50
removeFunction · 0.50
updatePromptFunction · 0.50
getLatestVersionFunction · 0.50

Calls 2

fetchFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected