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

Usage in Deno

```typescript import { Http2ServerRequest } from "node:node__http2.d.ts"; ```
The request authority pseudo header field. Because HTTP/2 allows requests to set either `:authority` or `host`, this value is derived from `req.headers[':authority']` if present. Otherwise, it is derived from `req.headers['host']`.

Type

string