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

Type

string
Back to top