Nodehttp2Http2ServerResponse.prototype.hasHeadermethod Http2ServerResponse.prototype.hasHeader#Http2ServerResponse.prototype.hasHeader(name: string): booleanReturns 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'); Parameters ##name: stringReturn Type #boolean
method Http2ServerResponse.prototype.hasHeader#Http2ServerResponse.prototype.hasHeader(name: string): booleanReturns 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'); Parameters ##name: stringReturn Type #boolean