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

    Class RequestEngine

    Index
    • As getJson, but also reporting the URL the request ended on so that relative links in the body can be resolved against the document they came from.

      query is set on the requested URL and again on every redirect target: a server that redirects a filtered list URL to a path without the query would otherwise answer the unfiltered list, and nothing in the result would say so.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<JsonResponse<T>>

    • GET an absolute URL and decode the JSON reply. Retries 429/503 (honouring a Retry-After in seconds, capped at 30 s), follows up to maxRedirects redirects on the same host, and rejects non-JSON bodies with an OparlParseError.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>