View source
enum abstract ServerResponseEvent<T>(Event<T>)
package js.node.http
to Event<T>
import js.node.http.ServerResponse
Enumeration of events emitted by the ServerResponse
objects in addition to its parent class events.
Variables
inlineread onlyClose:ServerResponseEvent<() ‑> Void> = "close"
Indicates that the underlying connection was terminated.
inlineread onlyFinish:ServerResponseEvent<() ‑> Void> = "finish"
Emitted when the response has been sent. More specifically, this event is emitted when the last segment of the response header and body have been handed off to the operating system for transmission over the network. It does not imply that the client has received anything yet.