Skip to main content

getHeader

method OutgoingMessage.prototype.getHeader
Jump to headingOutgoingMessage.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 Jump to heading

Jump to headingname: string

Name of header

Return Type Jump to heading

number
| string
| string[]
| undefined
Back to top