Method: Bunny::Channel#headers
- Defined in:
- lib/bunny/channel.rb
#headers(name, opts = {}) ⇒ Bunny::Exchange
Declares a headers exchange or looks it up in the cache of previously declared exchanges.
408 409 410 |
# File 'lib/bunny/channel.rb', line 408 def headers(name, opts = {}) find_exchange(name) || Exchange.new(self, :headers, name, opts) end |