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

    Class RequestEngine

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

      Parameters

      • path: string

      Returns string

    • GET a JSON body without credentials (helloworld/whoami).

      Type Parameters

      • T

      Parameters

      • path: string

      Returns Promise<T>

    • POST form-encoded params (with credential headers) and parse the JSON reply.

      Type Parameters

      • T

      Parameters

      • path: string
      • params: QueryParams
      • authHeaders: Record<string, string>

      Returns Promise<T>

    • POST form-encoded params and return the raw bytes (file / binary downloads). If the server answered with JSON instead of the expected binary (e.g. a credential or "too large" error on a data/*file endpoint), the logical Status is checked so the failure surfaces cleanly.

      Parameters

      • path: string
      • accept: string
      • params: QueryParams
      • authHeaders: Record<string, string>

      Returns Promise<RawResponse>