Skip to main content
Http2ServerResponse.prototype.getHeader - node__http2.d.ts - Node documentation
method Http2ServerResponse.prototype.getHeader

Usage in Deno

```typescript import { Http2ServerResponse } from "node:node__http2.d.ts"; ```
Http2ServerResponse.prototype.getHeader(name: string): string
Reads out a header that has already been queued but not sent to the client. The name is case-insensitive. ```js const contentType = response.getHeader('content-type'); ```

Parameters

name: string

Return Type

string