Http2ServerRequest.prototype.httpVersion - Node documentation
property Http2ServerRequest.prototype.httpVersion

Usage in Deno

import { Http2ServerRequest } from "node:http2";

In case of server request, the HTTP version sent by the client. In the case of client response, the HTTP version of the connected-to server. Returns'2.0'.

Also message.httpVersionMajor is the first integer andmessage.httpVersionMinor is the second.

Type

string