Ende.ServeHandlerInfo

interface

interface Ende.ServeHandlerInfo<Addr extends Ende.Addr = Ende.Addr>

Additional information for an HTTP request and its connection.

Properties

remoteAddr

remoteAddr: Addr

The remote address of the connection.

completed

completed: Promise<void>

A promise that settles when the request has been fully handled and the response has been sent.

It resolves once the response (including its body) has been completely delivered to the client. It rejects with a Ende.errors.Interrupted error if the response could not be sent successfully — for example when the client disconnects before the response body has been fully written. Attach a .catch() (or wrap an await in try/catch) if you need to observe these failures.