@maschinenlesbar.org/deutsche-digitale-bibliothek-cli
    Preparing search index...

    Class RequestEngine

    Index
    • Build a fully-qualified URL from a path and optional query parameters.

      Throws a DdbError for a path with a "." or ".." segment. The client puts ids, collections and request handlers into the path with encodeURIComponent, which leaves those two unchanged, and URL parsing then resolves them: a collection of ".." with handler "version" would request /2/search/version. Neither can name a resource. (Percent-encoded forms such as "%2e%2e" are safe: encodeURIComponent turns their "%" into "%25".)

      Parameters

      Returns string

    • Perform a GET returning the raw bytes (binary downloads).

      Parameters

      • path: string
      • accept: string
      • Optionalquery: QueryParams
      • OptionalfollowRedirect: (target: URL) => boolean

      Returns Promise<RawResponse>