(key: string, value: string)
| 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); |
no test coverage detected