Discolink
    Preparing search index...

    Interface RequestOptions

    Options for customizing a request

    interface RequestOptions {
        method?: string;
        params?: Record<string, string | number | boolean | null>;
        headers?: Record<string, string | number | boolean | null>;
        data?: unknown;
        signal?: AbortSignal;
        timeout?: number;
        versioned?: boolean;
    }
    Index

    Properties

    method?: string

    The http method

    params?: Record<string, string | number | boolean | null>

    The query params to set (not append)

    headers?: Record<string, string | number | boolean | null>

    The headers to send

    data?: unknown

    The json data to attach

    signal?: AbortSignal

    The abort signal

    timeout?: number

    The timeout for this request

    versioned?: boolean

    Whether the base url should be versioned. Default: true