method Http2Stream.on
Usage in Deno
```typescript import { type Http2Stream } from "node:node__http2.d.ts"; ```
Http2Stream.on(event: "trailers",listener: (trailers: IncomingHttpHeaders,flags: number,) => void,): this
listener: (trailers: IncomingHttpHeaders,flags: number,) => void
this