接口 RequestInit<PlatformRequestBody, PlatformHeaders, PlatformAbortSignal>

接口 RequestInit<PlatformRequestBody, Platform headers, PlatformAbortSignal> {
    body?: PlatformRequestBody
    凭证?: RequestCredentials
    headers?: 记录<字符串, 字符串> | Platform headers
    完整性?: 字符串
    keepalive?: 布尔
    方法?: 字符串
    模式?: RequestMode
    信号?: PlatformAbortSignal
}

类型参数

属性

请求的正文。

一个string ,表示凭证是始终、从不还是仅在发送到 同源URL时随请求一起发送。 设置请求的凭证。

headers?: 记录<字符串, 字符串> | Platform headers

请求的标头。

完整性?: 字符串

要按请求获取的资源的加密哈希值。 设置请求的完整性。

keepalive?: 布尔

用于设立请求 keepalive 的布尔值。

方法?: 字符串

用于设立请求方法的string 。

模式?: RequestMode

一个string ,用于指示请求是使用 CORS 还是限制为同源 URL。 设置请求的模式。

用于设置请求信号的 AbortSignal。

使用TypeDoc生成