method OutgoingMessage.prototype.hasHeader
Jump to headingOutgoingMessage.prototype.hasHeader(name: string): booleanReturns 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');
Parameters Jump to heading
Jump to headingname: stringReturn Type Jump to heading
boolean