amqpx / index / predefined / headersExchange
Function: headersExchange()
headersExchange(
channel):Exchange
Defined in: src/predefined.ts:47
This will create a headers exchange that is created by default by RabbitMQ container.
The headers exchange has name amqp.headers, is durable, and has type headers.
Parameters
| Parameter | Type | Description |
|---|---|---|
channel | Channel | The channel that should assert the exchange |
Returns
The exchange that was created