Method
put
(
pathOrUrl: string,
body?: ArrayBuffer | Uint8Array | undefined,
headers?: StringMap<string> | undefined,
)
Source from the content-addressed store, hash-verified
| 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')); |
| 64 | }); |
| 65 | } |
| 66 | |
| 67 | get(pathOrUrl: string, headers?: StringMap<string> | undefined): CancelablePromise<HTTPResponse> { |
| 68 | return this.perform(pathOrUrl, HTTPMethod.GET, headers, undefined); |
| 69 | } |
| 70 | |
| 71 | put( |
Callers
nothing calls this directly
Tested by
no test coverage detected