Skip to main content
IncomingMessage.prototype.httpVersion - node__http.d.ts - Node documentation
property IncomingMessage.prototype.httpVersion

Usage in Deno

```typescript import { IncomingMessage } from "node:node__http.d.ts"; ```
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