method ClientRequest.prototype.once
Overload 1
#ClientRequest.prototype.once(event: "abort",listener: () => void,): this
Overload 2
#ClientRequest.prototype.once(event: "connect",listener: () => void,): this
Overload 3
#ClientRequest.prototype.once(event: "continue",listener: () => void,): this
Overload 4
#ClientRequest.prototype.once(event: "information",listener: (info: InformationEvent) => void,): this
Parameters #
#event: "information"
#listener: (info: InformationEvent) => void
Return Type #
this
Overload 5
#ClientRequest.prototype.once(event: "response",listener: (response: IncomingMessage) => void,): this
Parameters #
#event: "response"
#listener: (response: IncomingMessage) => void
Return Type #
this
Overload 6
Overload 7
#ClientRequest.prototype.once(event: "timeout",listener: () => void,): this
Overload 8
#ClientRequest.prototype.once(event: "upgrade",listener: () => void,): this
Overload 9
#ClientRequest.prototype.once(event: "close",listener: () => void,): this
Overload 10
#ClientRequest.prototype.once(event: "drain",listener: () => void,): this
Overload 11
#ClientRequest.prototype.once(event: "error",listener: (err: Error) => void,): this
Overload 12
#ClientRequest.prototype.once(event: "finish",listener: () => void,): this
Overload 13
#ClientRequest.prototype.once(event: "pipe",listener: (src: stream.Readable) => void,): this
Overload 14
#ClientRequest.prototype.once(event: "unpipe",listener: (src: stream.Readable) => void,): this