MCPcopy Create free account
hub / github.com/Snapchat/Valdi / get

Method get

src/valdi_modules/src/valdi/valdi_http/src/HTTPClient.ts:58–60  ·  view source on GitHub ↗
(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

Calls 1

performMethod · 0.95

Tested by

no test coverage detected