RequestConfig
Interface请求配置
Signature
interface RequestConfig {
url: string
method?: HttpMethod | undefined
headers?: Record<string, string> | undefined
params?: Record<string, unknown> | undefined
data?: unknown
timeout?: number | undefined
signal?: AbortSignal | undefined
responseType?: ResponseType | undefined
retry?: RetryOptions | undefined
}Members
| Name | Type | Description |
|---|---|---|
| url | string | — |
| methodoptional | HttpMethod | undefined | — |
| headersoptional | Record<string, string> | undefined | — |
| paramsoptional | Record<string, unknown> | undefined | — |
| dataoptional | unknown | — |
| timeoutoptional | number | undefined | — |
| signaloptional | AbortSignal | undefined | — |
| responseTypeoptional | ResponseType | undefined | — |
| retryoptional | RetryOptions | undefined | — |
Source
packages/http/src/core/types.ts:16