Sha256: da9128e4fa609c6456aa3359737f4b0193fff55487992553793320c9ce1e46d2

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

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

c = Grenache::Http.new(grape_address: "http://127.0.0.1:40002/",
                       key:  File.expand_path('.') + "/ssl/client1-key.pem",
                       cert_pem: File.expand_path('.') + "/ssl/client1-crt.pem",
                       ca: File.expand_path('.') + "/ssl/ca-crt.pem")

start_time = Time.now

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grenache-ruby-http-0.2.11 examples/client_ssl.rb