OutgoingMessage.prototype.getHeaderNames - Node documentation
method OutgoingMessage.prototype.getHeaderNames

Usage

import { OutgoingMessage } from "node:http";

Returns an array containing the unique names of the current outgoing headers. All names are lowercase.

Return Type

string[]