Skip to main content
Http2ServerRequest.prototype.httpVersion - http2 - 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 and message.httpVersionMinor is the second.

Type

string