method Http2ServerResponse.prototype.hasHeaderHttp2ServerResponse.prototype.hasHeader(name: string): booleanDeprecatedReturns true if the header identified by name is currently set in the outgoing headers. The header name matching is case-insensitive. const hasContentType = response.hasHeader('content-type'); Parametersname: stringReturn Typeboolean