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