Method
get
(pathOrUrl: string, headers?: StringMap<string> | undefined)
Source from the content-addressed store, hash-verified
| 56 | } |
| 57 | }); |
| 58 | |
| 59 | // No request manager reports a cancelled request, so without this the promise never settles. |
| 60 | // Rejecting an already settled one is a no-op, so a late cancel changes nothing. |
| 61 | return promiseToCancelablePromise(promise, () => { |
| 62 | cancelFn?.(); |
| 63 | rejectFn?.(new Error('Request was cancelled')); |
Callers
nothing calls this directly
Tested by
no test coverage detected