method Http2ServerResponse.prototype.getHeaderHttp2ServerResponse.prototype.getHeader(name: string): stringDeprecatedReads 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'); Parametersname: stringReturn Typestring