method Http2ServerRequest.prototype.emitHttp2ServerRequest.prototype.emit(event: "aborted",hadError: boolean,code: number,): booleanDeprecatedParametersevent: "aborted"hadError: booleancode: numberReturn TypebooleanHttp2ServerRequest.prototype.emit(event: "close"): booleanDeprecatedParametersevent: "close"Return TypebooleanHttp2ServerRequest.prototype.emit(event: "data",chunk: Buffer | string,): booleanDeprecatedParametersevent: "data"chunk: Buffer | stringReturn TypebooleanHttp2ServerRequest.prototype.emit(event: "end"): booleanDeprecatedParametersevent: "end"Return TypebooleanHttp2ServerRequest.prototype.emit(event: "readable"): booleanDeprecatedParametersevent: "readable"Return TypebooleanHttp2ServerRequest.prototype.emit(event: "error",err: Error,): booleanDeprecatedParametersevent: "error"err: ErrorReturn TypebooleanHttp2ServerRequest.prototype.emit(event: string | symbol,...args: any[],): booleanDeprecatedParametersevent: string | symbol<span>...args</span>: any[]Return Typeboolean