grenache-ruby-http

Configuration

Grenache::Base.configure do |conf|
    conf.grape_address = "http://10.0.0.1:30002"
end

Usage

Announce a service

c = Grenache::BaseHttp.new

c.listen("test",5001) do |req|
    "hello #{req.payload}"
end

calling a remote service

c.request('test', 'world')