Interface RequestInit<PlatformRequestBody, PlatformHeaders, PlatformAbortSignal>

interface RequestInit<PlatformRequestBody, PlatformHeaders, PlatformAbortSignal> {
    body?: PlatformRequestBody;
    credentials?: RequestCredentials;
    headers?: Record<string, string> | PlatformHeaders;
    integrity?: string;
    keepalive?: boolean;
    method?: string;
    mode?: RequestMode;
    signal?: PlatformAbortSignal;
}

Type Parameters

Properties

The request's body.

credentials?: RequestCredentials

A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.

headers?: Record<string, string> | PlatformHeaders

The request's headers.

integrity?: string

A cryptographic hash of the resource to be fetched by request. Sets request's integrity.

keepalive?: boolean

A boolean to set request's keepalive.

method?: string

A string to set request's method.

A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.

An AbortSignal to set request's signal.

Generated using TypeDoc