Skip to content

Http1ServerConnectionEvents

Http1ServerConnectionEvents = object

Defined in: packages/net-http/src/h1/http1-server-connection.ts:52

Events emitted by an Http1ServerConnection.

close: []

Defined in: packages/net-http/src/h1/http1-server-connection.ts:61

The connection closed, or left HTTP through a tunnel. Emitted once.


error: [unknown]

Defined in: packages/net-http/src/h1/http1-server-connection.ts:58

A handler failed or returned an invalid response, or a response could not be sent. The client got a 500 when its response had not started. Transport failures (a reset peer) are not reported here: they only close.