@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Interface RequestOptions

    interface RequestOptions {
        body?: unknown;
        headers?: Record<string, string>;
        keepalive?: boolean;
        meta?: Record<string, unknown>;
        method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
        params?: Record<string, any>;
        signal?: AbortSignal;
    }
    Index
    body?: unknown
    headers?: Record<string, string>
    keepalive?: boolean

    Let the request outlive the page (fetch(..., { keepalive: true })), for a last report on pagehide. Small bodies only (browsers cap keepalive bodies at 64 KB).

    meta?: Record<string, unknown>

    Seed the request context meta bag (carried to response/error interceptors).

    method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
    params?: Record<string, any>
    signal?: AbortSignal

    Bind the request to a caller's own lifetime. Combined with the client's timeout rather than replacing it — whichever fires first aborts.