(name: string, signal?: AbortSignal)
| 217 | } |
| 218 | |
| 219 | async deleteSprite(name: string, signal?: AbortSignal): Promise<void> { |
| 220 | const response = await fetch(this.spritePath(name), { |
| 221 | method: 'DELETE', |
| 222 | headers: this.headers(), |
| 223 | ...(signal ? { signal } : {}), |
| 224 | }) |
| 225 | // A missing Sprite is already deleted. |
| 226 | if (!response.ok && response.status !== 404) { |
| 227 | await this.fail('DELETE', this.spritePath(name), response) |
| 228 | } |
| 229 | await response.body?.cancel() |
| 230 | } |
| 231 | |
| 232 | async setUrlAuth( |
| 233 | name: string, |
no test coverage detected