def exchange_declare(name, type, **opts)
      send_request :exchange_declare, {
        exchange:    name,
        type:        type,
        passive:     opts.fetch(:passive,     false),
        durable:     opts.fetch(:durable,     false),
        auto_delete: opts.fetch(:auto_delete, false),
        internal:    opts.fetch(:internal,    false),
        arguments:   opts.fetch(:arguments,   {})
      }
      fetch_response :exchange_declare_ok
    end
def exchange_declare(name, type, **opts)
      send_request :exchange_declare, {
        exchange:    name,
        type:        type,
        passive:     opts.fetch(:passive,     false),
        durable:     opts.fetch(:durable,     false),
        auto_delete: opts.fetch(:auto_delete, false),
        internal:    opts.fetch(:internal,    false),
        arguments:   opts.fetch(:arguments,   {})
      }
      fetch_response :exchange_declare_ok
    end
Exchange operations