MCPcopy
hub / github.com/codeaashu/claude-code / post

Method post

web/lib/api/client.ts:221–230  ·  view source on GitHub ↗
(path: string, body: unknown, opts?: RequestOptions)

Source from the content-addressed store, hash-verified

219 }
220
221 async post<T>(path: string, body: unknown, opts?: RequestOptions): Promise<T> {
222 const res = await this.request(path, {
223 method: "POST",
224 body: JSON.stringify(body),
225 signal: opts?.signal,
226 extraHeaders: opts?.headers,
227 });
228 if (!res.ok) throw await toApiError(res);
229 return res.json() as Promise<T>;
230 }
231
232 async patch<T>(path: string, body: unknown, opts?: RequestOptions): Promise<T> {
233 const res = await this.request(path, {

Callers 15

uploadBriefAttachmentFunction · 0.80
submitFeedbackFunction · 0.80
submitTranscriptShareFunction · 0.80
teleportToRemoteFunction · 0.80
archiveRemoteSessionFunction · 0.80
doExportMethod · 0.80
sendEventToRemoteSessionFunction · 0.80
createBridgeSessionFunction · 0.80
archiveBridgeSessionFunction · 0.80
createCodeSessionFunction · 0.80
fetchRemoteCredentialsFunction · 0.80
archiveSessionFunction · 0.80

Calls 2

requestMethod · 0.95
toApiErrorFunction · 0.85

Tested by

no test coverage detected