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

Usage in Deno

import { OutgoingMessage } from "node:http";
OutgoingMessage.prototype.getHeader(name: string):
number
| string
| string[]
| undefined

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