Sha256: 180747538dcd32521bb342b467420b0b5433a1caa7961bc7c39ab66cc25b8fea

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

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

c = Grenache::Http.new grape_address: "http://127.0.0.1:30001/"

err,res_hash = c.put({ "v" => "pineapple test" })
if !err

  puts "response, hash is: #{res_hash}"
else
  puts err
end

err,resp = c.get(res_hash)
if !err
  puts "response of #{res_hash}: #{resp}"
else
  puts err
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grenache-ruby-http-0.2.21 examples/put_get.rb
grenache-ruby-http-0.2.20 examples/put_get.rb
grenache-ruby-http-0.2.19 examples/put_get.rb
grenache-ruby-http-0.2.18 examples/put_get.rb
grenache-ruby-http-0.2.17 examples/put_get.rb