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

Method put

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

Calls 1

performMethod · 0.95

Tested by

no test coverage detected