doc: add esm examples to `node:http2`
This PR adds the ESM
counterparts of the CJS
examples for the HTTP/2 documentation.
I've refrained from changing any of the CJS
examples except for the one in Event: 'stream'
because we were importing http2
and then never using it, I deleted that statement. The users should take from context where session
comes from as in the rest of those examples.
I've tested every single example and they all work/behave as expected.
Best regards!