Skip to main content
Http2ServerRequest.prototype.authority - http2 - Node documentation
property Http2ServerRequest.prototype.authority

Usage in Deno

import { Http2ServerRequest } from "node:http2";

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
Back to top