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

    Class RequestEngine

    Index
    • Build a fully-qualified URL from a path and optional query parameters. It keeps the base URL's userinfo; request() sends it as an Authorization header instead.

      Parameters

      Returns string

    • Perform a GET expecting JSON and parse it into T. With shape, the parsed body must pass it (see responseShapeProblem in client.ts): a 2xx body without the documented envelope (null, {}, an error object, a proxy's text) is a LuftParseError naming the path, never data.

      Type Parameters

      • T

      Parameters

      • path: string
      • Optionalquery: QueryParams
      • Optionalshape: (value: unknown) => string | undefined

      Returns Promise<T>