(path: string, signal?: AbortSignal)
| 337 | } |
| 338 | |
| 339 | function getJson<T>(path: string, signal?: AbortSignal): Promise<T> { |
| 340 | return call<T>(path, { headers: { accept: 'application/json' } }, signal); |
| 341 | } |
| 342 | |
| 343 | /** A write: the marker header, and a JSON body when there is one to send. */ |
| 344 | function write<T>(path: string, method: string, body?: unknown, signal?: AbortSignal): Promise<T> { |
no test coverage detected