Skip to main content
Http2Session.type - http2 - Node documentation
property Http2Session.type

Usage in Deno

import { type Http2Session } from "node:http2";

The http2session.type will be equal to http2.constants.NGHTTP2_SESSION_SERVER if this Http2Session instance is a server, and http2.constants.NGHTTP2_SESSION_CLIENT if the instance is a client.

Type

number