What is the DataWeave expression to log the Content-Type header using a Logger component?
What is the DataWeave expression to log the Content-Type header using a Logger component?
In DataWeave, to access the headers of a message, you generally use the 'attributes.headers'. Additionally, to concatenate strings in DataWeave, you use the '+'. Therefore, the correct expression to log the Content-Type header would be 'Content-Type: ' + attributes.headers.'content-type'.
A is correct