( url: string, body?: unknown, config?: RequestConfig )
| 286 | * POST 请求 |
| 287 | */ |
| 288 | export 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 请求 |
nothing calls this directly
no test coverage detected