Function: getType()
Function: getType()
function getType(value, fallback): string;
Get message content type.
Parameters
value
The incoming message or content type string.
string
| IncomingMessage
fallback
string
= 'text/plain'
Fallback content type if parsing fails.
Returns
string
The content type of the message.