(
url: string,
body?: string | URLSearchParams,
options: Omit<HttpRequestOptions, 'method' | 'body'> = {}
)
| 156 | * POST 请求 |
| 157 | */ |
| 158 | export 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 请求 |
no test coverage detected