(key: string)
| 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), { |