g3-toolkit API Reference
    Preparing search index...

    Interface AdapterRequest

    Adapter middleware: composable request/response interceptors (M10.5.E2.T2).

    All adapters accept a middleware option. Middleware wraps the fetch call, enabling auth injection, retry, logging, and caching without modifying adapter internals.

    Framework-agnostic (D6).

    interface AdapterRequest {
        body?: string;
        headers: Record<string, string>;
        method: "GET" | "POST" | "PUT" | "DELETE";
        signal?: AbortSignal;
        url: string;
    }
    Index

    Properties

    body?: string
    headers: Record<string, string>
    method: "GET" | "POST" | "PUT" | "DELETE"
    signal?: AbortSignal

    Caller's cancellation signal.

    Honored by defaultFetch in addition to its own timeout, so a host can cancel an in-flight query when the user navigates away without giving up the timeout that stops a hung endpoint.

    url: string