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

    Interface RequestOptions

    Per-request options for RequestEngine.request.

    interface RequestOptions {
        accept: string;
        followRedirect?: (target: URL) => boolean;
        query?: QueryParams;
    }
    Index
    accept: string
    followRedirect?: (target: URL) => boolean

    Called for each redirect the engine would follow, with its resolved target. Returning false stops there: the 3xx surfaces as a DdbApiError whose location names the target, so the caller can decide (the client uses it for item redirects to another item).

    query?: QueryParams