No commit activity in last 3 years
No release in over 3 years
An AMQP-HTTP ruby client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0

Runtime

>= 0
 Project Readme

Rack::Amqp::Client

An AMQP-HTTP ruby client that simplifies following convention

Installation

Add this line to your application's Gemfile:

gem 'rack-amqp-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-amqp-client

Usage

client = Rack::AMQP::Client.client(host: 'localhost') # host is your AMQP broker, like RabbitMQ or whatever

# First param is the queue and http path, etc; second is options
response = client.request('test.simple/users.json', {http_method: 'GET', headers: {}})

response.payload
# => "[{\"id\":1,\"login\":\"someguy\",\"password\":\"awesomenesssss\",\"created_at\":\"2013-12-07T17:11:45.518Z\",\"updated_at\":\"2013-12-07T17:11:45.518Z\"},{\"id\":2,\"login\":\"Hi\",\"password\":\"There\",\"created_at\":\"2014-03-30T18:31:21.106Z\",\"updated_at\":\"2014-03-30T18:31:21.106Z\"}]"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request