Skip to content
Find file
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)
}
}
}
Jump to Line
Something went wrong with that request. Please try again.