IFClite TypeScript API
    Preparing search index...

    Interface NetworkRequestInit

    interface NetworkRequestInit {
        allowNotModified?: boolean;
        body?: string;
        headers?: Readonly<Record<string, string>>;
        loopbackHttpOrigin?: string;
        maxBytes: number;
        method: NetworkMethod;
        responseType?: "text" | "bytes";
        signal?: AbortSignal;
        timeoutMs: number;
        url: string;
    }
    Index
    allowNotModified?: boolean

    Return a 304 Not Modified as a response instead of refusing it with every other 3xx. Opt-in: a conditional request (If-None-Match) asks for it, and existing callers keep the refusal they already handle (#5935 review).

    body?: string
    headers?: Readonly<Record<string, string>>
    loopbackHttpOrigin?: string

    Ephemeral explicit authorization for one literal HTTP loopback origin, including port.

    maxBytes: number

    Maximum response body size in bytes; exceeding it aborts the read.

    responseType?: "text" | "bytes"

    'bytes' returns the capped body as raw NetworkResponse.bytes (binary downloads) instead of UTF-8 text; body is then ''. The byte cap applies identically. Defaults to 'text'.

    signal?: AbortSignal

    Caller's own cancellation, combined with the timeout's.

    timeoutMs: number

    Hard wall-clock limit for the whole request, including any denial checks.

    url: string