MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / httpPost

Function httpPost

src/main/utils/httpRequest.ts:158–164  ·  view source on GitHub ↗
(
  url: string,
  body?: string | URLSearchParams,
  options: Omit<HttpRequestOptions, 'method' | 'body'> = {}
)

Source from the content-addressed store, hash-verified

156 * POST 请求
157 */
158export function httpPost(
159 url: string,
160 body?: string | URLSearchParams,
161 options: Omit<HttpRequestOptions, 'method' | 'body'> = {}
162): Promise<HttpResponse> {
163 return httpRequest(url, { ...options, method: 'POST', body })
164}
165
166/**
167 * HEAD 请求

Callers 2

getLanzouDownloadLinkFunction · 0.90
getLanzouFolderFileListFunction · 0.90

Calls 1

httpRequestFunction · 0.85

Tested by

no test coverage detected