kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface InterceptorContext

    Context threaded through the interceptor pipeline.

    interface InterceptorContext {
        request: KinetexRequest;
        response: KinetexResponse<unknown> | null;
        error: unknown;
        startedAt: number;
        attempt: number;
        aborted: boolean;
        store: Map<string | symbol, unknown>;
    }
    Index

    Properties

    Mutable request — modify in place or return a new one.

    response: KinetexResponse<unknown> | null

    Set once the response is received.

    error: unknown

    Set when an error occurs.

    startedAt: number

    Monotonic start time (ms).

    attempt: number

    Current attempt number.

    aborted: boolean

    Whether the pipeline has been aborted.

    store: Map<string | symbol, unknown>

    Arbitrary pipeline-scoped storage.