HTTP/2 session
In Node.js, the object representing one HTTP/2 connection between a client and a server, which carries all its streams.
In more detail
Close sessions with session.close() when done, or they keep the process alive. One session carries many concurrent streams, which is why HTTP/2 needs so few connections.
Related terms
- node:http2 — The built-in Node.js module for HTTP/2 servers and clients, built on the nghttp2 library.
- HTTP/2 stream — One request and its response inside an HTTP/2 connection, identified by a stream number and carried as a sequence of frames.
Taught in
- Native HTTP/2 Protocols: Multiplexed Streams & Push — Node.js Internals & Backend Services