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

    Interface KinetexRequest<M>

    Fully-resolved request object passed through the pipeline.

    interface KinetexRequest<M extends HTTPMethod = HTTPMethod> {
        url: string;
        method: M;
        headers: Record<string, string>;
        body: BodyInit;
        signal: AbortSignal | null;
        meta: Record<string, unknown>;
        httpVersion?: HTTPVersion;
        redirect?: "error" | "follow" | "manual";
    }

    Type Parameters

    Index

    Properties

    url: string

    Fully-qualified URL string.

    method: M

    HTTP method.

    headers: Record<string, string>

    Normalized request headers (lowercase keys).

    body: BodyInit

    Serialized request body (null for bodyless methods).

    signal: AbortSignal | null

    AbortSignal for cancellation.

    meta: Record<string, unknown>

    Arbitrary per-request metadata — freely readable/writable by hooks.

    httpVersion?: HTTPVersion

    Preferred HTTP version. Falls back if unavailable.

    redirect?: "error" | "follow" | "manual"

    Redirect mode passed to fetch.

    • "follow" (default) — automatically follow redirects.
    • "manual" — return the redirect response as-is (used internally for cookie-jar redirect following).
    • "error" — throw on any redirect.