@maschinenlesbar.org/mudab-cli
    Preparing search index...

    Class RequestEngine

    Index
    • Build a fully-qualified URL from a path (all parameters travel in the body).

      Parameters

      • path: string

      Returns string

    • POST a JSON payload and parse the JSON reply into T.

      Type Parameters

      • T

      Parameters

      • path: string
      • payload: unknown

      Returns Promise<T>

    • Perform a request with Accept negotiation and transient-error retries.

      Redirects are deliberately NOT followed: the canonical host answers directly, and following a cross-origin 3xx blindly is a footgun. A 3xx therefore surfaces as an error, with a hint to use the canonical base URL.

      Parameters

      • method: string
      • path: string
      • options: { accept: string; body?: Buffer<ArrayBufferLike> } = ...

      Returns Promise<RawResponse>