Interface HttpStreamResponse

Response returned when config.stream is true on an HTTP request. Contains the EventBus channel to subscribe for streaming chunks, plus HTTP metadata from the initial response.

Hierarchy

  • HttpStreamResponse

Properties

dataChannel: string

UUID channel for subscribing via Eitri.eventBus.subscribe(). Chunks will be delivered on this channel as HttpStreamChunkPayload objects.

status: number

HTTP status code from the initial response.

statusText: string

HTTP status text from the initial response.

headers: Record<string, string>

Response headers (keys lowercased).

Generated using TypeDoc