IGPAPI
    Preparing search index...

    Interface TransportResponse

    interface TransportResponse {
        bloks: Buffer;
        body: Buffer;
        headers: Record<string, string | string[]>;
        method: string;
        protocol?: string;
        status: number;
        statusMessage?: string;
        url: string;
    }
    Index

    Properties

    bloks: Buffer

    Raw JSON bytes of { ast, dicts, literals } — Bloks extract attached by the native transport on every response (empty arrays on non-Bloks bodies, detected via quick-scan at near-zero cost).

    body: Buffer
    headers: Record<string, string | string[]>
    method: string
    protocol?: string

    Wire protocol the response actually came over, as reported by the native transport for this response: 'h3' (HTTP/3 over QUIC), 'h2' (HTTP/2 over TCP) or 'http/1.1'. It is the path the request really took, which can differ from the configured protocolMode: an iOS auto client whose QUIC attempt does not get through answers 'h2'. Absent when nothing was sent — responses produced by the render transport (createHttpRenderTransportLayer) or by a test transport. Typed as the transport's own string, so a value a newer transport adds passes through.

    status: number
    statusMessage?: string
    url: string