method Http2Session.close
Usage in Deno
import { type Http2Session } from "node:http2";
Http2Session.close(callback?: () => void): void
Gracefully closes the Http2Session, allowing any existing streams to
complete on their own and preventing new Http2Stream instances from being
created. Once closed, http2session.destroy()might be called if there
are no open Http2Stream instances.
If specified, the callback function is registered as a handler for the'close' event.
void