The KSHEADERS function returns the headers of the last consumed message. The headers are returned as a map withSTRING` keys and byte array values.

This function can only be called within a processor, during the execution of the init, process or close macro or during the execution of a punctuation macro.