IncomingMessage.prototype.httpVersion - Node documentation
property IncomingMessage.prototype.httpVersion

Usage in Deno

import { IncomingMessage } from "node:http";

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. Probably either '1.1' or '1.0'.

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

Type

string