OutgoingMessage.prototype.getHeader - Node documentation
method OutgoingMessage.prototype.getHeader

Usage

import { OutgoingMessage } from "node:http";

Gets the value of the HTTP header with the given name. If that header is not set, the returned value will be undefined.

Parameters

name: string

Name of header

Return Type

| number
| string
| string[]
| undefined