MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / robustPost

Function robustPost

src/utils/request.ts:288–301  ·  view source on GitHub ↗
(
  url: string,
  body?: unknown,
  config?: RequestConfig
)

Source from the content-addressed store, hash-verified

286 * POST 请求
287 */
288export async function robustPost<T = unknown>(
289 url: string,
290 body?: unknown,
291 config?: RequestConfig
292): Promise<RequestResult<T>> {
293 return robustFetch<T>(
294 url,
295 {
296 method: 'POST',
297 body: body === undefined ? undefined : JSON.stringify(body),
298 },
299 config
300 )
301}
302
303/**
304 * DELETE 请求

Callers

nothing calls this directly

Calls 1

robustFetchFunction · 0.85

Tested by

no test coverage detected