RequestOptions

身份验证模式

属性

authMode

身份验证模式

authMode?: "auto" | "anonymous" | "immediate" | "no-prompt"

类型: "auto" | "anonymous" | "immediate" | "no-prompt"

body

请求体数据

body?: string | HTMLFormElement | FormData

类型: string | HTMLFormElement | FormData

cacheBust

缓存破坏标志

cacheBust?: boolean

类型: boolean

headers

请求头信息

headers?: any

类型: any

method

HTTP请求方法

method?: "auto" | "delete" | "head" | "post" | "put"

类型: "auto" | "delete" | "head" | "post" | "put"

query

查询参数

query?: any

类型: any

responseType

响应数据类型

responseType?: "text" | "blob" | "xml" | "image" | "native" | "json" | "array-buffer" | "native-request-init" | "document"

类型: "text" | "blob" | "xml" | "image" | "native" | "json" | "array-buffer" | "native-request-init" | "document"

signal

中止信号

signal?: AbortSignal

类型: AbortSignal

timeout

请求超时时间

timeout?: number

类型: number

useProxy

是否使用代理

useProxy?: boolean

类型: boolean

withCredentials

是否携带凭据

withCredentials?: boolean

类型: boolean

BIMFlux AI