Interface RequestInit<Cf>

interface RequestInit<Cf> {
    body?: BodyInit;
    cf?: Cf;
    fetcher?: Fetcher<undefined, never>;
    headers?: HeadersInit;
    integrity?: string;
    method?: string;
    redirect?: string;
    signal?: AbortSignal;
}

Type Parameters

Properties

body?: BodyInit

A BodyInit object or null to set request's body.

cf?: Cf
fetcher?: Fetcher<undefined, never>
headers?: HeadersInit

A Headers object, an object literal, or an array of two-item arrays to set request's headers.

integrity?: string

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

method?: string

A string to set request's method.

redirect?: string

A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.

signal?: AbortSignal

An AbortSignal to set request's signal.