Interface HostFetchStreamResult

The terminal value of a hostFetchStream run — the response metadata, delivered once after the last body chunk. There is no body field: the body arrived as the stream of HostFetchStreamEvents.

interface HostFetchStreamResult {
    bytes: number;
    headers: Record<string, string>;
    status: number;
    statusText: string;
    truncated: boolean;
}

Properties

bytes: number

Total decoded body bytes delivered.

headers: Record<string, string>
status: number
statusText: string
truncated: boolean

True if the stream hit the host's cumulative byte cap and was truncated.