Skip to main content
Http2ServerRequest.prototype.httpVersion - node__http2.d.ts - Node documentation
property Http2ServerRequest.prototype.httpVersion

Usage in Deno

```typescript import { Http2ServerRequest } from "node:node__http2.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. Returns `'2.0'`. Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second.

Type

string