Skip to content

HttpIncomingResponse

HttpIncomingResponse = HttpIncomingBody_ & object

Defined in: packages/net-http/src/message/http-message.ts:66

A response, as a client receives it.

readonly headers: HttpHeaders

readonly status: number

readonly tunnel: Transport | null

The connection (HTTP/1.x) or stream (HTTP/2, HTTP/3) after it left HTTP: set after a 101 Switching Protocols, or a 2xx to CONNECT, and null otherwise. Start it to receive; its first delivery replays bytes that arrived with the response head.