Function detect_format
Source pub fn detect_format(payload: &str) -> String
Expand description
Detect the format of an MX message payload (XML or JSON)
§Arguments
payload - The message payload to analyze
§Returns
- “xml” if the payload appears to be XML
- “json” if the payload appears to be JSON
- “xml” as default if format cannot be determined