Skip to main content
method OutgoingMessage.prototype.getHeader
OutgoingMessage.prototype.getHeader(name: string):
number
| string
| string[]
| undefined
Deprecated

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