Returns true if the header identified by name is currently set in the outgoing headers. The header name is case-insensitive.
true
name
const hasContentType = outgoingMessage.hasHeader('content-type'); Copy
const hasContentType = outgoingMessage.hasHeader('content-type');
v7.7.0
Returns
trueif the header identified bynameis currently set in the outgoing headers. The header name is case-insensitive.