Skip to main content
method Http2ServerResponse.prototype.getHeader
Http2ServerResponse.prototype.getHeader(name: string): string
Deprecated

Reads out a header that has already been queued but not sent to the client. The name is case-insensitive.

const contentType = response.getHeader('content-type');

Parameters

name: string

Return Type

string
Back to top