Documentation
    Preparing search index...
    • Fetch function that returns every response as an IPropagation.

      An HTTP failure status is returned as a failed branch instead of being thrown. A route that declares an encrypted body and a transport failure still throw. The output must describe numeric status branches with boolean success and string or string-array headers; its data type remains caller-owned.

      Type Parameters

      • Output extends {
            data: unknown;
            headers: Record<string, string | string[]>;
            status: number;
            success: boolean;
        }

      Parameters

      Returns Promise<Output>

      contracts/common.md#principled-implementation The implementation refuses an encrypted route and delegates to FetcherBase.propagate. Its structural branch constraint accepts numeric literal successes, numeric range failures and unknown-status fallback without instantiating a status map with any, while requiring boolean success and actual numeric status/header shapes.

      contracts/common.md#clear-and-simple-design One guard and one delegation, with the overloads only splitting the types.

      contracts/common.md#prohibited-implementation-shortcuts The function adds no status-specific branch: the success flag comes from the status rules in FetcherBase.

      contracts/common.md#meaningful-documentation The comment states what the returned union carries and which failures still throw.

    • Fetch function that returns every response as an IPropagation.

      An HTTP failure status is returned as a failed branch instead of being thrown. A route that declares an encrypted body and a transport failure still throw. The output must describe numeric status branches with boolean success and string or string-array headers; its data type remains caller-owned.

      Type Parameters

      • Input
      • Output extends {
            data: unknown;
            headers: Record<string, string | string[]>;
            status: number;
            success: boolean;
        }

      Parameters

      • connection: IConnection
      • route: IFetchRoute<"HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE">
      • Optionalinput: Input
      • Optionalstringify: (input: Input) => string

      Returns Promise<Output>

      contracts/common.md#principled-implementation The implementation refuses an encrypted route and delegates to FetcherBase.propagate. Its structural branch constraint accepts numeric literal successes, numeric range failures and unknown-status fallback without instantiating a status map with any, while requiring boolean success and actual numeric status/header shapes.

      contracts/common.md#clear-and-simple-design One guard and one delegation, with the overloads only splitting the types.

      contracts/common.md#prohibited-implementation-shortcuts The function adds no status-specific branch: the success flag comes from the status rules in FetcherBase.

      contracts/common.md#meaningful-documentation The comment states what the returned union carries and which failures still throw.