method Http2ServerResponse.prototype.onHttp2ServerResponse.prototype.on(event: "close",listener: () => void,): thisDeprecatedParametersevent: "close"listener: () => voidReturn TypethisHttp2ServerResponse.prototype.on(event: "drain",listener: () => void,): thisDeprecatedParametersevent: "drain"listener: () => voidReturn TypethisHttp2ServerResponse.prototype.on(event: "error",listener: (error: Error) => void,): thisDeprecatedParametersevent: "error"listener: (error: Error) => voidReturn TypethisHttp2ServerResponse.prototype.on(event: "finish",listener: () => void,): thisDeprecatedParametersevent: "finish"listener: () => voidReturn TypethisHttp2ServerResponse.prototype.on(event: "pipe",listener: (src: stream.Readable) => void,): thisDeprecatedParametersevent: "pipe"listener: (src: stream.Readable) => voidReturn TypethisHttp2ServerResponse.prototype.on(event: "unpipe",listener: (src: stream.Readable) => void,): thisDeprecatedParametersevent: "unpipe"listener: (src: stream.Readable) => voidReturn TypethisHttp2ServerResponse.prototype.on(event: string | symbol,listener: (...args: any[]) => void,): thisDeprecatedParametersevent: string | symbollistener: (...args: any[]) => voidReturn Typethis