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

    Interface HttpRequest

    interface HttpRequest {
        body?: string | Buffer<ArrayBufferLike>;
        headers?: Record<string, string>;
        maxResponseBytes?: number;
        method: string;
        redirect?: "manual";
        signal?: AbortSignal;
        timeoutMs?: number;
        url: string;
    }
    Index
    body?: string | Buffer<ArrayBufferLike>

    Optional request body (already serialised).

    headers?: Record<string, string>
    maxResponseBytes?: number

    Hard cap on the response body size in bytes; the request aborts if exceeded.

    method: string
    redirect?: "manual"

    Always "manual" from the engine: a transport must not follow redirects but return the 3xx as it came (fetch(url, { redirect: req.redirect })). The engine follows them itself and decides per hop where credentials may go; a response whose url shows the transport went to another origin is rejected.

    signal?: AbortSignal

    Aborted when the engine's time limit (timeoutMs) passes. A transport should stop the request then (fetch(url, { signal })); the engine rejects at the deadline either way, and enforces maxResponseBytes on the body it gets back, so neither limit depends on it.

    timeoutMs?: number

    Timeout for the whole request, response body included, in milliseconds.

    url: string

    Fully-qualified absolute URL.