Logos DX
    Preparing search index...

    Interface RequestKeyOptions<S, H, P>

    Context object passed to request serializers for key generation.

    Note: H and P represent the header/param type arguments, but the actual values are DictOrT and DictOrT

    as stored by FetchEngine.

    interface RequestKeyOptions<S = unknown, H = unknown, P = unknown> {
        headers?: DictAndT<H>;
        method: string;
        params?: DictAndT<P>;
        path: string;
        payload?: unknown;
        state?: S;
        url: URL;
    }

    Type Parameters

    • S = unknown
    • H = unknown
    • P = unknown
    Index

    Properties

    headers?: DictAndT<H>

    Request headers (instance headers merged with method headers)

    method: string

    HTTP method (GET, POST, etc.)

    params?: DictAndT<P>

    URL parameters (extracted from url.searchParams for flat access)

    path: string

    Request path (original path without base URL)

    payload?: unknown

    Request payload/body

    state?: S

    Instance state

    url: URL

    Fully-constructed URL including base URL, path, and query parameters.

    Use url.pathname + url.search for cache/dedupe keys to exclude hash while including the full path and query string.