Skip to main content
OutgoingMessage.prototype.getHeader - node__http.d.ts - Node documentation
method OutgoingMessage.prototype.getHeader

Usage in Deno

```typescript import { OutgoingMessage } from "node:node__http.d.ts"; ```
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