@maschinenlesbar.org/destatis-genesis-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": a transport must NOT follow redirects. GENESIS credentials are custom headers (username, password), which fetch forwards to another origin on a redirect (it strips only Authorization); the engine answers a 3xx itself (as an error naming the canonical host). A fetch transport passes it on: fetch(req.url, { method, headers, body, redirect: req.redirect, signal: req.signal }).

    signal?: AbortSignal

    Aborted when the engine's overall deadline (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 the transport. The engine aborts it with its timeout error as the reason; a caller may add its own signal (the MCP server's limiter does), whose abort is no timeout.

    timeoutMs?: number

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

    url: string

    Fully-qualified absolute URL.