Documentation
    Preparing search index...

    Interface RequestOptions

    interface RequestOptions {
        body?: null | BodyInit;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        headers?: HeadersInit;
        json?: Jsonifiable;
        keepalive?: boolean;
        method?: string;
        onResponse?: (
            response: Response,
            request: Request,
        ) => void | Response | Promise<void | Response>;
        redirect?: RequestRedirect;
        retry?: RetryOptions;
        signal?: AbortSignal;
        timeout?: number;
    }
    Index

    Properties

    body?: null | BodyInit
    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    headers?: HeadersInit
    json?: Jsonifiable
    keepalive?: boolean
    method?: string
    onResponse?: (
        response: Response,
        request: Request,
    ) => void | Response | Promise<void | Response>
    redirect?: RequestRedirect
    retry?: RetryOptions
    signal?: AbortSignal
    timeout?: number