Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 374 Bytes
mq.on error: {err ->
err.printStackTrace()
}
mq.exchange(name: "webhooks.test", type: "topic", durable: false, autoDelete: true) {
queue(name: "webhooks.test.q", durable: false, autoDelete: true, routingKey: "test.key") {
publish id: "", method: "post", body: { msg, out ->
msg.properties.contentType = "application/json"
out.write("""1""".bytes)
}
}
}