(name: string, path: string)
| 512 | } |
| 513 | |
| 514 | private async deleteSentinel(name: string, path: string): Promise<void> { |
| 515 | const res = await fetch( |
| 516 | this.spritePath(name, `/fs/write?path=${encodeURIComponent(path)}`), |
| 517 | { |
| 518 | method: 'PUT', |
| 519 | headers: this.headers({ 'content-type': 'application/octet-stream' }), |
| 520 | body: new Uint8Array(0), |
| 521 | }, |
| 522 | ).catch(() => undefined) |
| 523 | await res?.body?.cancel() |
| 524 | } |
| 525 | |
| 526 | private async killSession(name: string, sessionId: string): Promise<void> { |
| 527 | const response = await fetch( |
no test coverage detected