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

Usage in Deno

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

Value will be undefined if the Http2Session is not yet connected to a socket, h2c if the Http2Session is not connected to a TLSSocket, or will return the value of the connected TLSSocket's own alpnProtocol property.

Type

string | undefined