Sha256: 89b57a3e03207e3745e7ea098896410aa0468c10d44cbbb1392df2636be89755

Contents?: true

Size: 367 Bytes

Versions: 8

Compression:

Stored size: 367 Bytes

Contents

require_relative '../lib/grenache-ruby-http.rb'

Grenache::Http.configure do |conf|
   conf.grape_address = "http://127.0.0.1:40002/"
end

c = Grenache::Http.new
start_time = Time.now

10.times do |n|
  err,resp = c.request("test","world #{n}")
  if !err
    puts "response: #{resp.payload}"
  else
    puts err
  end
end

puts "Total Time: #{Time.now - start_time}"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
grenache-ruby-http-0.1.10 examples/client.rb
grenache-ruby-http-0.1.9 examples/client.rb
grenache-ruby-http-0.1.8 examples/client.rb
grenache-ruby-http-0.1.7 examples/client.rb
grenache-ruby-http-0.1.6 examples/client.rb
grenache-ruby-http-0.1.5 examples/client.rb
grenache-ruby-http-0.1.4 examples/client.rb
grenache-ruby-http-0.1.3 examples/client.rb