(Quick Reference)

headers

Purpose

Attached headers to send with the message.

Examples

rabbitMessagePublisher.send {
    routingKey = "example.queue"
    headers = [
        "header1": "foo",
        "header2": "bar"
    }
    body = "test message"
}

Description

The headers property is simply a map with key/value pairs for the header names and their values.